Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Project Level
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
- buildscript {
- ext {
- compose_version = '1.0.5'
- kotlin_version = '1.5.31'
- compose_navigation = '2.4.0-rc01'
- }
- repositories {
- google()
- mavenCentral()
- }
- dependencies {
- classpath "com.android.tools.build:gradle:7.0.4"
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$compose_navigation"
- // classpath 'com.google.gms:google-services:4.3.10'
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
- }
- task clean(type: Delete) {
- delete rootProject.buildDir
- }
- App Level
- plugins {
- id 'com.android.application'
- id 'kotlin-android'
- id 'kotlin-kapt'
- // id 'com.google.gms.google-services'
- id 'androidx.navigation.safeargs.kotlin'
- }
- android {
- compileSdk 31
- defaultConfig {
- applicationId "com.newsapp.app"
- minSdk 23
- targetSdk 31
- versionCode 1
- versionName "1.0"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- vectorDrawables {
- useSupportLibrary true
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = '1.8'
- useIR = true
- }
- buildFeatures {
- compose true
- }
- composeOptions {
- kotlinCompilerExtensionVersion compose_version
- kotlinCompilerVersion kotlin_version
- }
- packagingOptions {
- resources {
- excludes += '/META-INF/{AL2.0,LGPL2.1}'
- }
- }
- }
- dependencies {
- implementation 'androidx.core:core-ktx:1.7.0'
- implementation 'androidx.appcompat:appcompat:1.4.0'
- implementation 'com.google.android.material:material:1.4.0'
- implementation "androidx.compose.ui:ui:$compose_version"
- implementation "androidx.compose.material:material:$compose_version"
- implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
- implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.0'
- implementation 'androidx.activity:activity-compose:1.4.0'
- debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
- // Compose dependencies
- implementation "androidx.navigation:navigation-compose:$compose_navigation"
- // Testing Navigation
- androidTestImplementation "androidx.navigation:navigation-testing:$compose_navigation"
- // Testing dependencies
- testImplementation 'junit:junit:4.13.2'
- androidTestImplementation 'androidx.test.ext:junit:1.1.3'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
- androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
- }
- Build Log
- Executing tasks: [:app:assembleDebug] in project F:\StartUp\newsapp\android
- > Configure project :app
- ComposeOptions.kotlinCompilerVersion is deprecated. Compose now uses the kotlin compiler defined in your buildscript.
- > Task :app:preBuild UP-TO-DATE
- > Task :app:preDebugBuild UP-TO-DATE
- > Task :app:compileDebugAidl NO-SOURCE
- > Task :app:compileDebugRenderscript NO-SOURCE
- > Task :app:generateDebugBuildConfig UP-TO-DATE
- > Task :app:generateSafeArgsDebug UP-TO-DATE
- > Task :app:checkDebugAarMetadata UP-TO-DATE
- > Task :app:generateDebugResValues UP-TO-DATE
- > Task :app:generateDebugResources UP-TO-DATE
- > Task :app:mergeDebugResources UP-TO-DATE
- > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
- > Task :app:extractDeepLinksDebug UP-TO-DATE
- > Task :app:processDebugMainManifest UP-TO-DATE
- > Task :app:processDebugManifest UP-TO-DATE
- > Task :app:processDebugManifestForPackage UP-TO-DATE
- > Task :app:processDebugResources UP-TO-DATE
- > Task :app:kaptGenerateStubsDebugKotlin UP-TO-DATE
- > Task :app:kaptDebugKotlin UP-TO-DATE
- > Task :app:compileDebugKotlin FAILED
- w: ATTENTION!
- This build uses unsafe internal compiler arguments:
- -XXLanguage:+NonParenthesizedAnnotationsOnFunctionalTypes
- This mode is not recommended for production use,
- as no stability/compatibility guarantees are given on
- compiler or generated code. Use it at your own risk!
- 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!).
- > Task :app:javaPreCompileDebug UP-TO-DATE
- > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
- > Task :app:mergeDebugShaders UP-TO-DATE
- > Task :app:compileDebugShaders NO-SOURCE
- > Task :app:generateDebugAssets UP-TO-DATE
- > Task :app:mergeDebugAssets UP-TO-DATE
- > Task :app:compressDebugAssets UP-TO-DATE
- > Task :app:processDebugJavaRes NO-SOURCE
- > Task :app:checkDebugDuplicateClasses UP-TO-DATE
- > Task :app:desugarDebugFileDependencies UP-TO-DATE
- > Task :app:mergeExtDexDebug UP-TO-DATE
- > Task :app:mergeLibDexDebug UP-TO-DATE
- > Task :app:mergeDebugJniLibFolders UP-TO-DATE
- > Task :app:mergeDebugNativeLibs NO-SOURCE
- > Task :app:stripDebugDebugSymbols NO-SOURCE
- > Task :app:validateSigningDebug UP-TO-DATE
- > Task :app:writeDebugAppMetadata UP-TO-DATE
- > Task :app:writeDebugSigningConfigVersions UP-TO-DATE
- FAILURE: Build failed with an exception.
- * What went wrong:
- Execution failed for task ':app:compileDebugKotlin'.
- > Compilation error. See log for more details
- * Try:
- 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.
- * Get more help at https://help.gradle.org
- Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
- Use '--warning-mode all' to show the individual deprecation warnings.
- See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings
- BUILD FAILED in 6s
- 26 actionable tasks: 1 executed, 25 up-to-date
Add Comment
Please, Sign In to add comment