Android Studio 3.1 - Exception in plugin Android Support

走远了吗. 提交于 2019-12-05 01:10:32

I faced the exact same problem, I was afraid I broke something... I fixed it by cleaning and rebuilding the project (I had disabled instant run as suggested here before but I guess that was not necessary as I enabled it again after cleaning and rebuilding the project and worked just fine...).

Build -> Clean Project

Build -> Rebuild Project

I am not sure if rebuilding would be necessary, I did both steps and it worked fine, maybe just cleaning the project would have been sufficient.

Hope that helps!!

EDIT

Nice, one more thing. When I solved the problem depicted here I found another problem, when I clicked run the apk was not being created and I solved it with my answer on that other thread:

The APK file does not exist on disk

Disable "Instant Run" Work for me.

File>>Setting>>Build,Execution,Deployment>>Instant Run

Uncheck "Enable Instant Run......."

I was having a similar issue. In my case Android Studio deleted all the "android:id"s from layout files.

It seems that disabling "Instant Run" fixed the issue:

Settings -> Build, Execution, Deployment -> Instant Run -> untick

The way I got solution is following:

1) Disable the "Instant Run". Settings -> Build, Execution, Deployment -> Instant Run -> Uncheck -> apply -> OK

2) Build -> Clean and Rebuild Project

Change the buildToolsVersion '27.0.3' to '27.0.2' in build module then revert back and sync gradle

I faced in android studio 3.5 in this same issue .Just delete android studio 3.5 and I install 3.4.1 .Then there is no error.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!