Error: Library projects cannot set applicationId. applicationId is set to "com.du.android.recyclervi
2016-10-17 18:17
441 查看
今天在导入一个Android Studio 工程时,发生了这样的错误:
Error: Library projects cannot set applicationId. applicationId is set to "com.du.android.recyclerview" in
default config
网上找到的解决方法分享一下,出现这个错误的原因在于工程下有个库,库的build.gradle里面defaultConfig内存在:
defaultConfig {
applicationId "com.du.android.recyclerview"
minSdkVersion 21
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
红色部分的字体,这时删除红色标注的内容即可!
Error: Library projects cannot set applicationId. applicationId is set to "com.du.android.recyclerview" in
default config
网上找到的解决方法分享一下,出现这个错误的原因在于工程下有个库,库的build.gradle里面defaultConfig内存在:
defaultConfig {
applicationId "com.du.android.recyclerview"
minSdkVersion 21
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
红色部分的字体,这时删除红色标注的内容即可!
相关文章推荐
- Error: Library projects cannot set applicationId. applicationId is set to '包名' in default
- Android Studio报错--Error: Library projects cannot set applicationId. applicationId is set to ...
- android studio 1.0 Library projects cannot set applicationId. applicationId is set to '' in default
- Android Studio报错--Error: Library projects cannot set applicationId. applicationI
- Android Studio Library projects cannot set applicationId
- Error:(1, 0) Plugin with id 'com.android.application' not found. <a href="openFile:F:\AndroidCode\Ji
- Error:(1, 1) A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android
- unable to get system library for the project" error when import android project to eclips
- Error:(24, 13) Failed to resolve: com.android.support:recyclerview-v7:20.+ <a href="install.m2.repo"
- Android--Error:Library projects cannot enable Jack. Jack is enabled in default config
- applicationId is set to 'com.super.app' in default config
- Error:(1, 1) A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android
- Android Application Error:Failed to load properties file for project ""
- Android Studio各种坑爹之导入model:Library projects cannot set applicationId
- Archive for required library: '/libs/android-support-v4.jar' in project '' cannot be read or is not
- ClickOnce报错的解决:VS 2010 RTM returns Error: "Cannot publish because a project failed to build"
- "Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.".
- [Android_Bug]处理PhoneGap Application Error: "The connection to the server was unsuccessful.(file:///android_asset/www/index.html)"的错误
- eclipse运行android项目出现"The connection to adb is down, and a severe error has occured."的问题
- eclipse运行android项目出现"The connection to adb is down, and a severe error has occured."的问题