Android studio 报错Multiple annotations of type `dalvik.annotation.EnclosingClass`

在Android studio中报错Multiple annotations of type dalvik.annotation.EnclosingClass
看不出来什么问题,然后在vscode代开自己的代码,查看被修改过得文件,如果有build.gradle ,对比发现:

  dependencies {
    
    
        classpath 'com.android.tools.build:gradle:3.1.4'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }

classPath的版本有问题,修改下就可以了

猜你喜欢

转载自blog.csdn.net/weixin_43877575/article/details/118519649