报错显示是下面两个: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: appAdd 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
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货