Java 错误程序类型已存在:android.support.design.widget.CoordinatorLayout$Behavior
我在这行有错误 所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)。找到版本27.1.1、26.1.0。示例包括com.android.support:animated vector drawable:27.1.1和com.android.support:customtabs:26.1.0Java 错误程序类型已存在:android.support.design.widget.CoordinatorLayout$Behavior,java,android,Java,Android,我在这行有错误 所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)。找到版本27.1.1、26.1.0。示例包括com.android.support:animated vector drawable:27.1.1和com.android.support:customtabs:26.1.0 implementation 'com.android.support:appcompat-v7:26.1.0' 是我的 app.gradle apply
implementation 'com.android.support:appcompat-v7:26.1.0'
是我的
app.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.akhilkumar.chitchat"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:customtabs:26.1.0'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.google.firebase:firebase-database:16.0.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-core:16.0.0'
implementation 'com.google.android.gms:play-services-location:9.2.0'
implementation 'com.google.firebase:firebase-auth:16.0.1'
implementation 'com.google.firebase:firebase-messaging:10.2.1'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.google.firebase:firebase-storage:16.0.1'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
}
apply plugin: 'com.google.gms.google-services'
出现此错误是因为您可以使用旧版本,所以只需更新版本依赖项即可 更改:
编译SDK版本26
或目标SDK版本26
至
编译SDK版本27
或目标SDK版本27
同时更改:
implementation'com.android.support:appcompat-v7:27.1.1'
implementation'com.android.support:customtabs:27.1.1'
implementation'com.android.support:design:27.1.1'
Sync..
和清理和重建
此错误是因为您可以使用旧版本,因此只需更新版本依赖项即可
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.example.akhilkumar.chitchat"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:customtabs:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-core:16.0.0'
implementation 'com.google.android.gms:play-services-location:9.2.0'
implementation 'com.google.firebase:firebase-auth:16.0.1'
implementation 'com.google.firebase:firebase-messaging:10.2.1'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.google.firebase:firebase-storage:16.0.1'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
}
apply plugin: 'com.google.gms.google-services'
更改:
编译SDK版本26
或目标SDK版本26
至
编译SDK版本27
或目标SDK版本27
同时更改:
implementation'com.android.support:appcompat-v7:27.1.1'
implementation'com.android.support:customtabs:27.1.1'
implementation'com.android.support:design:27.1.1'
Sync..
和清理和重建
我通过简单的更改解决了这个问题
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.example.akhilkumar.chitchat"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:customtabs:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-core:16.0.0'
implementation 'com.google.android.gms:play-services-location:9.2.0'
implementation 'com.google.firebase:firebase-auth:16.0.1'
implementation 'com.google.firebase:firebase-messaging:10.2.1'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.google.firebase:firebase-storage:16.0.1'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
}
apply plugin: 'com.google.gms.google-services'
实现'com.android.support:design:26.1.0'
至
implementation 'com.android.support:design:27.1.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:support-v4:26.1.0'
我希望这有助于。。。还要做一个渐变更新
特别是对于react native navigation v2,我通过简单的更改解决了这个问题 实现'com.android.support:design:26.1.0' 至
implementation 'com.android.support:design:27.1.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:support-v4:26.1.0'
我希望这有助于。。。还要做一个渐变更新
专门针对react native navigation v2你可以使用哪个android studio?@MohammadAli android 3.1.2按照我的回答进入设置如果脱机模式为启用,请进入设置并禁用@CharyJagdeeshTry此链接,我希望它能对你有所帮助。你可以使用哪个android studio?@MohammadAli android 3.1.2根据我的回答进入设置如果离线模式为启用,请进入设置并禁用@Charyjagdeesh尝试此链接,我希望它能对你有所帮助。Thnak很多兄弟,稍有变化后工作正常欢迎你,我的答案对你有效,然后选择正确答案@charyjagdeeshnaks很多兄弟,稍有变化后工作正常欢迎你,我的答案对你有效,然后选择正确答案@CharyJagdeesh