Category : build.gradle

I have a private library that I use internally between all my apps to reduce boilerplate and annoying parts of Android framework. I’m wondering if and how can I use it to share libraries that I use in all my projects. For example I use leakcanary everywhere in my apps: debugImplementation "com.squareup.leakcanary:leakcanary-android:2.7" implementation "com.squareup.leakcanary:plumber-android:2.7" Can ..

Read more

I got an error for Build Project, Debug & Run Execution failed for task ‘:app:processDebugResources’. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.3-6503028-windows Daemon #0: Unexpected error during link, attempting to stop daemon. This should not happen under normal circumstances, please file an issue if it does. & Dependent features configured but no ..

Read more

I’m having trouble understanding build variants in Android studio. I created am empty project and added product flavors as following. apply plugin: ‘com.android.application’ android { compileSdkVersion 30 buildToolsVersion "30.0.3" defaultConfig { applicationId "com.example.myapplication" minSdkVersion 16 targetSdkVersion 30 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } flavorDimensions "version" productFlavors { demo { applicationIdSuffix ".demo" } full { ..

Read more

Hi I am codding with Kotlin. Everything was perfect. After adding implementation ‘com.google.firebase:firebase-auth-ktx:21.0.1’ lines in build.gradle It started that getting Didn’t find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file…………….. error. What is the problem. I am giving some build.gradle files codes.Maybe it is necessary to say somethig. Thanks apply plugin: ‘com.google.gms.google-services’ android { buildToolsVersion "30.0.3" compileSdkVersion ..

Read more

I get this error when I try to run the app. I also get some Room database error but I fixed them,but this error occurs when I run the app. Could not initialize class com.gradle.scan.agent.serialization.scan.a.g * Exception is: java.lang.NoClassDefFoundError: Could not initialize class com.gradle.scan.agent.serialization.scan.a.g at com.gradle.scan.plugin.internal.g.a.a(SourceFile:22) at com.gradle.scan.plugin.internal.b.w.a.a(SourceFile:11) at com.gradle.scan.plugin.internal.b.c.a(SourceFile:38) at com.gradle.scan.plugin.internal.o.d.a(SourceFile:51) at com.gradle.scan.plugin.internal.r.a.b(SourceFile:111) at ..

Read more

Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-compat-27.1.0-runtime (com.android.support:support-compat:27.1.0) Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-compat-27.1.0-runtime (com.android.support:support-compat:27.1.0) Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-compat-27.1.0-runtime (com.android.support:support-compat:27.1.0) Duplicate class android.support.v4.os.IResultReceiver found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-compat-27.1.0-runtime (com.android.support:support-compat:27.1.0) Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-compat-27.1.0-runtime (com.android.support:support-compat:27.1.0) ..

Read more

When trying to build the projects, got this err: 2021-06-07T17:42:28.929+0200 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation ‘Snapshot outputs after executing task ‘:app:processDebugMainManifest” 2021-06-07T17:42:28.518+0200 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] Execution failed for task ‘:app:mergeDebugResources’. > A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable > Resource compilation failed. Check logs for details. * Try: Run with –stacktrace option to get the stack ..

Read more