android studio的报错提示:Library projects cannot set applicationId

Posted 彬sir哥

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了android studio的报错提示:Library projects cannot set applicationId相关的知识,希望对你有一定的参考价值。

android studio的报错提示:Library projects cannot set applicationId
这报错信息就是第三方项目的build.gradle里有applicationId

解决办法:

去掉下面的applicationId一行,就可以了:

defaultConfig 
//        applicationId "com.example.shoppingcart"
        minSdkVersion 15
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.test.runner.AndroidJUnitRunner"
    

以上是关于android studio的报错提示:Library projects cannot set applicationId的主要内容,如果未能解决你的问题,请参考以下文章

Android Studio的报错提示::app:compileDebugJavaWithJavac

Android Studio的报错提示:Installation via USB is disabled.

Android Studio的报错提示:android.content.res.Resources$NotFoundException: Resource ID #0xfffffe6c

Android Studio的报错提示:android.content.res.Resources$NotFoundException: Resource ID #0xfffffe6c

android studio的报错提示:Library projects cannot set applicationId

android studio的报错提示:Library projects cannot set applicationId