Questions tagged «android-jetifier»

9
给定的工件包含一个字符串文字,其字符串包参考'android.support.v4.content'无法安全地重写。对于androidx
我升级了我的软件android studio to 3.4 canary,由于以下错误,我现在无法成功构建: 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 '.gradle/caches/modules-2/files-2.1/com.jakewharton/butterknife-compiler/9.0.0-SNAPSHOT/732f93940c74cf32a7c5ddcc5ef66e53be052352/butterknife-compiler-9.0.0-SNAPSHOT.jar' using Jetifier. Reason: …

2
Android:已弃用的不能转换为注释
不再是迁移到AndroidX的烦恼... 我几乎完成了迁移,但是遇到了一个似乎无法逾越的错误。 已经尝试Clean & Rebuild和Invalidate Caches / Restart 似乎是将@Deprecated注入​​到无法识别的R.java文件中。 该应用程序的build.gradle文件很长,但是这里有相关部分(如果相关,可以发布更多内容): android { compileSdkVersion 29 defaultConfig { minSdkVersion 17 targetSdkVersion 29 } compileOptions { dataBinding { enabled = true } } dependencies { ... implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'com.google.android.material:material:1.2.0-alpha01' def rxlifecycleVersion = "3.1.0" implementation "io.reactivex.rxjava3:rxjava:3.0.0-RC4" implementation "com.trello.rxlifecycle3:rxlifecycle:$rxlifecycleVersion" implementation "com.trello.rxlifecycle3:rxlifecycle-kotlin:$rxlifecycleVersion" implementation "com.trello.rxlifecycle3:rxlifecycle-android:$rxlifecycleVersion" implementation …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.