You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to migrate my current project to an instant apps base feature with base and installed modules (at the momento no instant module) and I am getting this error:
:base:kaptGenerateStubsReleaseKotlin
ERROR: [TAG] Failed to resolve variable '${animal.sniffer.version}'
:base:kaptGenerateStubsReleaseKotlin FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':base:kaptGenerateStubsReleaseKotlin'.
> Could not resolve all artifacts for configuration ':base:releaseCompileClasspath'.
> Failed to transform file 'builder-3.1.4.jar' to match attributes {artifactType=processed-jar} using transform JetifyTransform
> Failed to transform 'C:\...\.gradle\caches\modules-2\files-2.1\com.android.tools.build\builder\3.1.4\...\builder-3.1.4.jar' using Jetifier. Reason: duplicate entry: module-info.class. (Run with --stacktrace for more details.) To disable Jetifier, set android.enableJetifier=false in your gradle.properties file.
I am using Android SDK 28, AndroidX and Butterknife-9.0.0-rc2
This is my dependency tree:
The version builder:3.1.4 is incompatible with androidx, but butterknife 9.0.0-rc2 is already compatible with AndroidX, right?
My project compiles correctly with androidX and 9.0.0-rc2 without using plugin apply plugin: 'com.android.feature'
The text was updated successfully, but these errors were encountered:
jdelga
changed the title
ailed to transform 'com.android.tools.build\builder\3.1.4\...\builder-3.1.4.jar' using Jetifier. Reason: duplicate entry: module-info.class.
Failed to transform 'com.android.tools.build\builder\3.1.4\...\builder-3.1.4.jar' using Jetifier. Reason: duplicate entry: module-info.class.
Dec 3, 2018
The Gradle plugin should be added to the buildscript classpath and not the app's implementation config. Please see the readme for a copy/paste example.
Thank you Jake, but I had it inside buildscript. I have edited the description with my full root build.gradle file. Previously I had only added part of it.
Actually, I can import R2 in my files, but it won't compile. I am still having the issue
The com.android.tools.build supports androidX only starting in version 3.2.0. I think that the butterknife-gradle-plugin should update its dependency at least to 3.2.0 or the latest version which is 3.2.1
I am trying to migrate my current project to an instant apps base feature with base and installed modules (at the momento no instant module) and I am getting this error:
I am using Android SDK 28, AndroidX and
Butterknife-9.0.0-rc2
This is my dependency tree:
The version builder:3.1.4 is incompatible with androidx, but butterknife 9.0.0-rc2 is already compatible with AndroidX, right?
My project compiles correctly with androidX and 9.0.0-rc2 without using plugin
apply plugin: 'com.android.feature'
My root
build.gradle
file:My base feature module
build.gradle
file:The text was updated successfully, but these errors were encountered: