
報錯顯示是下面兩個:ERROR: Failed to resolve: com.android.support:appcompat-v7:28.0.0
Add Google Maven repository and sync project
Show in Project Structure dialog
Affected Modules: app
Add Google Maven repository and sync project
Show in Project Structure dialog
Affected Modules: app
上面顯示Gradle project sync failed.basic functionality (e.g.editing,debugging)will not work properly.
這個是之前做的,換了電腦但我也不知道哪里錯了,我的sdk如下圖


下面是build.grdle里面的內容
//noinspection GradleDependency
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "com.my.diaryapp"
minSdkVersion 15
targetSdkVersion 28
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'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:28.0.0'
testImplementation 'junit:junit:4.12'
implementation 'org.xutils:xutils:3.1.26'
}
到底哪里錯了,求大神指教呀o(≧口≦)o
uj5u.com熱心網友回復:
看這個帖吧 https://blog.csdn.net/stone_fall/article/details/86660649轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/148411.html
標籤:Android
下一篇:串口log怎么看報錯資訊?
