我是新的混合应用程序,正在使用ionic-5.4.1和带有电容器平台的android studio 3.5在Angular中创建应用程序。
我在gradle同步期间遇到错误。 我尝试添加google maven存储库网址,但仍然保持不变。
2-way
请帮助我所缺少的。
maven {
url "https://maven.google.com"
}
build.gradle(项目:android)
ERROR: Unable to resolve dependency for ':capacitor-android@debug/compileClasspath': Could not resolve org.apache.cordova:framework:7.0.0.
Affected Modules: capacitor-android
ERROR: Unable to resolve dependency for ':capacitor-android@debug/compileClasspath': Could not resolve com.google.auto.value:auto-value-annotations:1.6.3.
Affected Modules: capacitor-android
ERROR: Unable to resolve dependency for ':capacitor-android@debugAndroidTest/compileClasspath': Could not resolve org.apache.cordova:framework:7.0.0.
Affected Modules: capacitor-android
ERROR: Unable to resolve dependency for ':capacitor-android@debugAndroidTest/compileClasspath': Could not resolve junit:junit:4.12.
Affected Modules: capacitor-android
ERROR: Unable to resolve dependency for ':capacitor-android@debugAndroidTest/compileClasspath': Could not resolve com.squareup:javawriter:2.1.1.
Affected Modules: capacitor-android
ERROR: Unable to resolve dependency for ':capacitor-android@debugAndroidTest/compileClasspath': Could not resolve org.hamcrest:hamcrest-library:1.3.
Affected Modules: capacitor-android
ERROR: Unable to resolve dependency for ':capacitor-android@debugAndroidTest/compileClasspath': Could not resolve org.hamcrest:hamcrest-integration:1.3.
Affected Modules: capacitor-android
ERROR: Unable to resolve dependency for ':capacitor-android@debugAndroidTest/compileClasspath': Could not resolve com.google.code.findbugs:jsr305:2.0.1.
Affected Modules: capacitor-android
ERROR: Unable to resolve dependency for ':capacitor-android@debugAndroidTest/compileClasspath': Could not resolve com.google.auto.value:auto-value-annotations:1.6.3.
Affected Modules: capacitor-android
ERROR: Unable to resolve dependency for ':capacitor-android@debugUnitTest/compileClasspath': Could not resolve org.apache.cordova:framework:7.0.0.
Affected Modules: capacitor-android
ERROR: Unable to resolve dependency for ':capacitor-android@debugUnitTest/compileClasspath': Could not resolve com.google.auto.value:auto-value-annotations:1.6.3.
Affected Modules: capacitor-android
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve junit:junit:4.12.
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.squareup:javawriter:2.1.1.
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve org.hamcrest:hamcrest-library:1.3.
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve org.hamcrest:hamcrest-integration:1.3.
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.google.code.findbugs:jsr305:2.0.1.
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve junit:junit:4.12.
Affected Modules: app
ERROR: Unable to resolve dependency for ':capacitor-cordova-android-plugins@debug/compileClasspath': Could not resolve org.apache.cordova:framework:7.0.0.
Affected Modules: capacitor-cordova-android-plugins
ERROR: Unable to resolve dependency for ':capacitor-cordova-android-plugins@debugAndroidTest/compileClasspath': Could not resolve org.apache.cordova:framework:7.0.0.
Affected Modules: capacitor-cordova-android-plugins
ERROR: Unable to resolve dependency for ':capacitor-cordova-android-plugins@debugUnitTest/compileClasspath': Could not resolve org.apache.cordova:framework:7.0.0.
Affected Modules: capacitor-cordova-android-plugins
build.gradle(模块:capacitor-android)
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}