我是Android Studio的新手。
需要将旧项目迁移到Android Studio
首先我得到这个错误:
android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor'.. Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information ...
然后,当我进行更改并替换我需要的东西时,出现此错误:
'keyboard|screenSize|orientation|' is incompatible with ...
任何对此有想法的人请帮助
最佳答案
对于android-apt
错误,请引用:
Incompatible plugins for android-apt after upgrading to Android Studio 2.3
另外,在您的应用gradle文件中的dependencies部分下,将compile
更改为implementation
。 (编译将在2018年底弃用,您应该改用实现)。
对于第二个,根据图像,您似乎在末尾有一个额外的|
(keyboard|screenSize|orientation|
)尝试将其删除。
下次请附加代码本身,这将更容易发现问题所在。
关于android - 将旧项目迁移到Android Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52630193/