During importing from Eclipse to Android Studio, what does "Obsolete dependency configuration found: compile View usage" mean?

huangapple go评论106阅读模式
英文:

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,并使用适当的库版本。希望这能帮助你。

(图片部分未翻译)

英文:

This error message means that you must make changes on your build.Gradle (module: app) file, because compile is deprecated. So replace compile with implementation and use the adequate library version. Hope that will help you.During importing from Eclipse to Android Studio, what does "Obsolete dependency configuration found: compile View usage" mean?

huangapple
  • 本文由 发表于 2020年8月28日 06:02:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/63624716.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定