New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails with androidX and jetifier enabled #1395
Comments
Well that's stupid. I guess I'll just fool it's logic by splitting the string into two. |
Please test the SNAPSHOT build in about 20m. If this doesn't work I'm going to revert and ask you to file a jetifier bug. |
What's the version, 9.0.0-SNAPSHOT? |
Yep
…On Tue, Oct 30, 2018 at 5:57 PM j-ns ***@***.***> wrote:
What's the version, 9.0.0-SNAPSHOT?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1395 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEEESqF0vNT6vUCQQoEGGP37aq7Jiooks5uqMtLgaJpZM4YCxUF>
.
|
Doesn't work. Still the same error message showing up. |
Link your bug |
Thanks! |
I have the same bug and I can't find a way to resolve it. Any lead? |
Having the same issue. Any updates on this? |
Same issue here. |
Having this issues after updated Android studio 3.3-beta03 |
Have same issue after migrating to 3.4 canary 3 android studio version. please fix it faster :) |
I'm also having the same issue. |
You can use the SNAPSHOT version to use. |
@kimcy929
JakeWharton commented 11 days ago j-ns commented 10 days ago JakeWharton commented 10 days ago j-ns commented 10 days ago • |
When I used 9.0.0-SNAPSHOT, it worked again. 9.0.0-rc01 not work |
Same issue. |
using 9.0.0-SNAPSHOT helped! If you are getting "Failed to resolve" error then look here: |
See https://issuetracker.google.com/issues/118658603#comment5 for a workaround. No action to take on our side. |
why do i have to put this in every android studio project that i create now? its stupid.. and plus i keep getting a warning every time i compile that this is experimental and not stable. can butterknife solve this issue so we don't have to manually import that in gradle.properties file? |
It's not needed with 10.0.0.
The issue was with jetifier not this library.
…On Mon, Feb 11, 2019 at 11:11 AM primalbet ***@***.***> wrote:
See https://issuetracker.google.com/issues/118658603#comment5 for a
workaround. No action to take on our side.
why do i have to put this in every android studio project that i create
now? its stupid.. and plus i keep getting a warning every time i compile
that this is experimental and not stable. can butterknife solve this issue
so we don't have to manually import that in gradle.properties file?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1395 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEEEUF5qF54ZqqaymKffo6R6lfMQswCks5vMZY1gaJpZM4YCxUF>
.
|
thanks for the quick reply. i've been using 9.0.0-rc3 version, just noticed there is 10.0.0 which solves this problem |
When I used GlideApp, everything was fine, but when I switched to AndroidX, I compiled the error. /app/build/generated/source/apt/debug/com/posttag/createbyai/GlideOptions.java:6: 错误: 程序包android.support.annotation不存在import android.support.annotation.CheckResult; I tried to modify it. |
I experienced the same problem after migrating to androidx. upgrade to the lest version of butterknife follow the library implementation instructions here. it'll work fine afterwords aside from some warning that has to do with am api going obsolete by the end of 2019 |
Same issue here. After upgrading to AndroidX:
Does anyone know how to make the glide compiler to use 'androidx.annotation' for generating app glide module instead of 'android.support.annotation'? in app.gradle:
in gradle.properties:
in proguard-rules.pro:
cc: @wangqingpeng131 seems very similar to the issue you posted. Have you resolved this? |
After updating Android Studio my project not running pls any suggestion repositories { } apply plugin: 'com.android.application' //apply plugin: 'com.neenbedankt.android-apt' android {
} /*
} dependencies {
// implementation 'com.google.android.gms:play-services-appindexing:9.0.2'
} apply plugin: 'com.google.gms.google-services' dependencies { dependencies { } |
Cannot find a version of 'androidx.appcompat:appcompat' that satisfies the version constraints: |
@denniswon have you tried migrating to androidx using android studio migration tool? @vaishaliidnani from the screenshot you posted i think your project is running fine. these are just warning messages about an api that's going to be deprecated soon and you can ignore it. you should be able to run your app with android studio emulator or on your phone without any problems |
Avoid Jetifier complaining. JakeWharton/butterknife#1395 (comment)
I am having the same issue after migrating to androidx. If I upgrade butterknife to 10.2.0 then it asks to upgrade gradle to 4.10.0 after which there are other errors for which there is a need to downgrade gradle and hence butterknife. The issue "Failed to resolve androidX" is not going anyway. Here is my build.gradle file apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'com.google.gms.google-services' //Google Services plugin android { dependencies {
// androidTestImplementation 'androidx.test:runner:1.1.0'
} |
I migrated my project to androidX. Now I get the following error message on building the project:
The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.
Caused by: java.lang.RuntimeException: Failed to transform butterknife-compiler-9.0.0-rc1.jar' using Jetifier. Reason: The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.
gradle.properties:
build.gradle (app module)
gradle distribution: gradle-4.10.2
I've tried using different versions of the artifacts, still getting the same error
The text was updated successfully, but these errors were encountered: