Solve the apt error problem after upgrading Android studio 2.3 to Android studio 3.0

1. Phenomenon description

The original project works normally in Android studio 2.3. After upgrading to 3.0, the following errors are reported:

2. Solution:

Project is deleted from the build.gradle file

Module is deleted from the build.gradle file

Module in the build.gradle file

PS: let's add that after Android studio is updated to 3.0, apt is not supported

After Android studio is updated to 3.0, apt is not supported. Only the following two points need to be modified for adaptation:

1. Remove the apply plugin: 'Android apt' in build.gradle under the module directory

2. Change apt to annotation processor

For example:

Change to

summary

The above is what Xiaobian introduced to you to solve the problem of apt error reporting after Android studio 2.3 is upgraded to Android studio 3.0. I hope it will be helpful to you. If you have any questions, please leave me a message and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>