错误原因:Android Studio 升级后,因版本原因,又降级回来了,但是项目本身的设置没有设置回来。
错误:
Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run (or updating either the IDE or the Gradle plugin to the latest version)
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.baidu.android.pushservice.a.a.e) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
解决方式:项目目录下的build.gradle里改成目前运行版本,或者升级studio到新版
对应版本的各个 官方文档