Guest User

Untitled

a guest
Dec 16th, 2021
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 6.34 KB | None | 0 0
  1. Project Level
  2.  
  3. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  4. buildscript {
  5.     ext {
  6.         compose_version = '1.0.5'
  7.         kotlin_version = '1.5.31'
  8.         compose_navigation = '2.4.0-rc01'
  9.     }
  10.     repositories {
  11.         google()
  12.         mavenCentral()
  13.     }
  14.     dependencies {
  15.         classpath "com.android.tools.build:gradle:7.0.4"
  16.         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  17.  
  18.         classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$compose_navigation"
  19. //        classpath 'com.google.gms:google-services:4.3.10'
  20.  
  21.         // NOTE: Do not place your application dependencies here; they belong
  22.         // in the individual module build.gradle files
  23.     }
  24. }
  25.  
  26. task clean(type: Delete) {
  27.     delete rootProject.buildDir
  28. }
  29.  
  30.  
  31.  
  32. App Level
  33.  
  34. plugins {
  35.     id 'com.android.application'
  36.     id 'kotlin-android'
  37.     id 'kotlin-kapt'
  38. //    id 'com.google.gms.google-services'
  39.     id 'androidx.navigation.safeargs.kotlin'
  40. }
  41.  
  42. android {
  43.     compileSdk 31
  44.  
  45.     defaultConfig {
  46.         applicationId "com.newsapp.app"
  47.         minSdk 23
  48.         targetSdk 31
  49.         versionCode 1
  50.         versionName "1.0"
  51.  
  52.         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  53.         vectorDrawables {
  54.             useSupportLibrary true
  55.         }
  56.     }
  57.  
  58.     buildTypes {
  59.         release {
  60.             minifyEnabled false
  61.             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  62.         }
  63.     }
  64.     compileOptions {
  65.         sourceCompatibility JavaVersion.VERSION_1_8
  66.         targetCompatibility JavaVersion.VERSION_1_8
  67.     }
  68.     kotlinOptions {
  69.         jvmTarget = '1.8'
  70.         useIR = true
  71.     }
  72.     buildFeatures {
  73.         compose true
  74.     }
  75.     composeOptions {
  76.         kotlinCompilerExtensionVersion compose_version
  77.         kotlinCompilerVersion kotlin_version
  78.     }
  79.     packagingOptions {
  80.         resources {
  81.             excludes += '/META-INF/{AL2.0,LGPL2.1}'
  82.         }
  83.     }
  84. }
  85.  
  86. dependencies {
  87.  
  88.     implementation 'androidx.core:core-ktx:1.7.0'
  89.     implementation 'androidx.appcompat:appcompat:1.4.0'
  90.     implementation 'com.google.android.material:material:1.4.0'
  91.     implementation "androidx.compose.ui:ui:$compose_version"
  92.     implementation "androidx.compose.material:material:$compose_version"
  93.     implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
  94.     implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.0'
  95.     implementation 'androidx.activity:activity-compose:1.4.0'
  96.     debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
  97.  
  98.     // Compose dependencies
  99.     implementation "androidx.navigation:navigation-compose:$compose_navigation"
  100.  
  101.  
  102.     // Testing Navigation
  103.     androidTestImplementation "androidx.navigation:navigation-testing:$compose_navigation"
  104.  
  105.     // Testing dependencies
  106.     testImplementation 'junit:junit:4.13.2'
  107.     androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  108.     androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  109.     androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
  110. }
  111.  
  112.  
  113.  
  114. Build Log
  115. Executing tasks: [:app:assembleDebug] in project F:\StartUp\newsapp\android
  116.  
  117.  
  118. > Configure project :app
  119. ComposeOptions.kotlinCompilerVersion is deprecated. Compose now uses the kotlin compiler defined in your buildscript.
  120.  
  121. > Task :app:preBuild UP-TO-DATE
  122. > Task :app:preDebugBuild UP-TO-DATE
  123. > Task :app:compileDebugAidl NO-SOURCE
  124. > Task :app:compileDebugRenderscript NO-SOURCE
  125. > Task :app:generateDebugBuildConfig UP-TO-DATE
  126. > Task :app:generateSafeArgsDebug UP-TO-DATE
  127. > Task :app:checkDebugAarMetadata UP-TO-DATE
  128. > Task :app:generateDebugResValues UP-TO-DATE
  129. > Task :app:generateDebugResources UP-TO-DATE
  130. > Task :app:mergeDebugResources UP-TO-DATE
  131. > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
  132. > Task :app:extractDeepLinksDebug UP-TO-DATE
  133. > Task :app:processDebugMainManifest UP-TO-DATE
  134. > Task :app:processDebugManifest UP-TO-DATE
  135. > Task :app:processDebugManifestForPackage UP-TO-DATE
  136. > Task :app:processDebugResources UP-TO-DATE
  137. > Task :app:kaptGenerateStubsDebugKotlin UP-TO-DATE
  138. > Task :app:kaptDebugKotlin UP-TO-DATE
  139.  
  140. > Task :app:compileDebugKotlin FAILED
  141. w: ATTENTION!
  142. This build uses unsafe internal compiler arguments:
  143.  
  144. -XXLanguage:+NonParenthesizedAnnotationsOnFunctionalTypes
  145.  
  146. This mode is not recommended for production use,
  147. as no stability/compatibility guarantees are given on
  148. compiler or generated code. Use it at your own risk!
  149.  
  150. e: This version (1.0.5) of the Compose Compiler requires Kotlin version 1.5.31 but you appear to be using Kotlin version 1.6.0 which is not known to be compatible.  Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).
  151.  
  152. > Task :app:javaPreCompileDebug UP-TO-DATE
  153. > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
  154. > Task :app:mergeDebugShaders UP-TO-DATE
  155. > Task :app:compileDebugShaders NO-SOURCE
  156. > Task :app:generateDebugAssets UP-TO-DATE
  157. > Task :app:mergeDebugAssets UP-TO-DATE
  158. > Task :app:compressDebugAssets UP-TO-DATE
  159. > Task :app:processDebugJavaRes NO-SOURCE
  160. > Task :app:checkDebugDuplicateClasses UP-TO-DATE
  161. > Task :app:desugarDebugFileDependencies UP-TO-DATE
  162. > Task :app:mergeExtDexDebug UP-TO-DATE
  163. > Task :app:mergeLibDexDebug UP-TO-DATE
  164. > Task :app:mergeDebugJniLibFolders UP-TO-DATE
  165. > Task :app:mergeDebugNativeLibs NO-SOURCE
  166. > Task :app:stripDebugDebugSymbols NO-SOURCE
  167. > Task :app:validateSigningDebug UP-TO-DATE
  168. > Task :app:writeDebugAppMetadata UP-TO-DATE
  169. > Task :app:writeDebugSigningConfigVersions UP-TO-DATE
  170.  
  171. FAILURE: Build failed with an exception.
  172.  
  173. * What went wrong:
  174. Execution failed for task ':app:compileDebugKotlin'.
  175. > Compilation error. See log for more details
  176.  
  177. * Try:
  178. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  179.  
  180. * Get more help at https://help.gradle.org
  181.  
  182. Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
  183. Use '--warning-mode all' to show the individual deprecation warnings.
  184. See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings
  185.  
  186. BUILD FAILED in 6s
  187. 26 actionable tasks: 1 executed, 25 up-to-date
  188.  
Add Comment
Please, Sign In to add comment