英文:
During importing from Eclipse to Android Studio, what does "Obsolete dependency configuration found: compile View usage" mean?
问题
在Android Studio 4.0.1
中导入我七年前用KitKat和Eclipse
编写的简短Android应用程序代码,运行良好。
这是一个非常小的应用程序,用作我实际应用程序的实验基地。
我遇到了两个问题:
- "compile/libs/android-support-v4.jar" "找到过时的依赖配置:编译View usage"
- "compile/libs/libspen23.jar" "找到过时的依赖配置:编译View usage"
点击两次提供的"将编译更新为implementation"很有效(Android Studio团队做得很好!)。
我想对这个最后的问题有更多的了解。"找到过时的依赖配置:编译View usage"是什么意思?(我绝对需要libspen23.jar
,但我不确定是否仍需要android-support-v4.jar
,或者为什么我起初需要它。)
英文:
Importing to Android Studio 4.0.1
my seven-year old brief Android app code, which I wrote on KitKat and Eclipse
, works fine.
This is a very small app that serves as an experimental ground for my actual app.
I am getting the two issues:
- "compile/libs/android-support-v4.jar" "Obsolete dependency configuration found: compile View usage".
- "compile/libs/libspen23.jar" "Obsolete dependency configuration found: compile View usage".
Clicking on the offered "Update compile to implementation" twice works nicely (good job, Android Studio team!).
I'd now like to have a bit more understanding about this last issue. What does "Obsolete dependency configuration found: compile View usage" mean? (I definitely need libspen23.jar
, but I'm not sure whether android-support-v4.jar
will be needed or, indeed, why I needed it in the first place.)
答案1
得分: 0
这个错误消息表示你必须在你的 build.Gradle (module: app)
文件上做出更改,因为 compile
已经被弃用。所以请用 implementation
替换 compile
,并使用适当的库版本。希望这能帮助你。
(图片部分未翻译)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论