因此,我一直在尝试解析服务器编码,并下载了预加载的项目。但是问题出现了,每当我尝试运行该项目时,它就会显示未解决的依赖关系,并且gradle同步失败
我正在使用android studio的最新版本。我已经尝试将所有最新版本的详细信息放到build.gradle(module)和build.gradle(project)中,但是仍然显示未解决的依赖项->
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.parse.starter"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:28.0.0'
compile 'com.parse.bolts:bolts-tasks:1.4.0'
compile 'com.parse:parse-android:1.17.3'
compile 'com.google.android.gms:play-services:12.0.1'
compile 'com.android.support:multidex:1.0.3'
}
`
Error messages -- >
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: ParseStarterProject
ERROR: Failed to resolve: com.google.android.gms:play-services:12.0.1
Install Repository and sync project
Show in Project Structure dialog
Affected Modules: ParseStarterProject
ERROR: Failed to resolve: com.android.support:multidex:1.0.3
Add Google Maven repository and sync project
Show in Project Structure dialog
Affected Modules: ParseStarterProject
ERROR: Failed to resolve: com.android.support:support-annotations:27.1.1
Add Google Maven repository and sync project
Show in Project Structure dialog
Affected Modules: ParseStarterProject
ERROR: Failed to resolve: com.android.support:support-compat:27.1.1
Add Google Maven repository and sync project
Show in Project Structure dialog
Affected Modules: ParseStarterProject
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
Affected Modules: ParseStarterProject