Home > Mobile >  Android Studio in ERROR ERROR: Failed to resolve:
Android Studio in ERROR ERROR: Failed to resolve:

Time:11-04


ERROR is according to the following two: ERROR: Failed to resolve: com. Android. Support: appcompat - v7:28.0.0
Add Google Maven repository and sync project
Show in the Project Structure dialog
Affected Modules: app

Add Google Maven repository and sync project
Show in the Project Structure dialog
Affected Modules: app

Shown above Gradle project sync failed. Basic functionality (E.G.E diting, was debugging) will not work properly.


This is done before, in the computer but I don't know where is wrong, my SDK below



Below is the build grdle inside content
//noinspection GradleDependency
Apply the 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. The test. The 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. The test. The espresso: espresso - core: 2.2.2 ', {
Exclude group: 'com. Android. The support, the module:' support - annotations'
})

Implementation 'com. Android. Support: appcompat - v7:28.0.0'
TestImplementation 'junit: junit: 4.12'
Implementation 'org. Xutils: xutils: 3.1.26'
}
What is wrong, the great god teach ah o (≧ ≦) o

CodePudding user response:

Look at this post: https://blog.csdn.net/stone_fall/article/details/86660649
  • Related