I have build one project in android studio and i'm getting ApkprovisionException. If i build normal apk and install using terminal then its working fine.
My error is Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: Couldn't get post build model. Module: amazon-kinesis-video-streams-webrtc-sdk-android.main Variant: minSdk24Debug.
I have to researched about error and tried to again all gradle sync, Invalid caches and restart. but currently error is not resolved.
Related
I just recently updated my arturbosch detekt library in my android app to 1.20.0-RC1 but when I run my build using bitrise CI tool, I get this error message:
I have checked my detekt config file and "formatting" is spelt correctly. What could be wrong and how do I resolve it.
I my gradle file, I added the autoCorrect Line in this block:
Task :react-native-device-info:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-device-info:compileReleaseJavaWithJavac'.
java.io.FileNotFoundException: /workspace/eos-native/node_modules/react-native-device-info/android/build/intermediates/annotation_processor_list/release/annotationProcessors.json (No such file or directory)
The error makes sense , and the file is not there, but I have no idea why its not there? It is created when I run a debug version of the app and debug versions of my libraries, react-native-device-info, react-orientation-locker etc.. I've cleaned, gradle synched, rebuilt etc. but when trying to assemble or install a release build I get this error within seconds. What is causing the Java
I had the same problem in an android project (without react) when I added a library module.
After searching for a solution for quite some time, I finally deleted the .gradle directory in the project root folder.
This solved the problem for me.
update android gradle plugin to 3.3
update gradle to 4.10.3
fixed the issue for me.
I tried to sync my gradle in android studio and it showed me this error even after I tried to sync it locally, still the same error:
Error:BUG!
exception in phase 'class generation' in source unit
'ijinit0_8gov8jl8pmdtxuu0gk1mcw4af' unsupported Target MODULE
What Gradle and Java versions are you using?
Try downgrading them & delete the build and .gradle folders in your project directory
I am using android DataBinding library it compiled successfully when i try to build to the emulator it can not run. Gradle build get fail and Gradle console shows
IllegalStateException: Duplicate key com.android.tools.idea.res.LayoutDataBindingInfo#6ea6bbc
I'm working on an Android project with two projects inside it. When trying to run a build with gradlew (./gradlew build), I see the following error:
Execution failed for task ':example:lint'.
Could not initialize class
com.android.build.gradle.tasks.Lint$LintGradleIssueRegistry
With stacktrace enabled, this is listed as a java.lang.NoClassDefFoundError.
Oddly, the first time I ran this (which downloaded dependencies), the build failed with a different error:
Execution failed for task ':example:lint'.
lombok/ast/Node
The gradle wrapper that Android SDK created for the project is using Gradle 2.8.
Could this be a configuration issue with the project or my dev machine? I'm trying to avoid using the Android SDK lint tool as this complains about the projects using Gradle (and I hear it may miss some parts of these projects).
Turned out this was a configuration issue in our build.gradle. The following line had been added for testing and never removed:
configurations.classpath.exclude group: 'com.android.tools.external.lombok'
As such, the classes needed for linting were missing.
The following discussion pointed us in the right direction, in case it's useful to anyone else:
https://github.com/evant/gradle-retrolambda/issues/96