Danke für Deine Mühe !
Ich habe noch Probleme mit einigen Deiner Hinweise.
- die maven-Zeile im Projekt Gradle File ist schon immer vorhanden
- ich finde keine SupportLib 27, die einzige 27 steht in der buildToolsVersion-Zeile und die ist auskommentiert wie von Dir empfohlen
Im nachfolgenden Textblock sind enthalten:
build.gradle für Projekt und App, Fehlermeldungen für Sync- und Build-Vorgang.
************* build.gradle, Projekt ***************
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
// mq maven repo
maven { url 'http://artifactory.cloud.mapquest.com/artifactory/et-android-binaries' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
************ build.gradle, app **************
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
/* buildToolsVersion "27.0.3" /
defaultConfig {
applicationId "example.com.mymapquestapp"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
//https://stackoverflow.com/questions/48709870/still-getting-warning-configuration-compile-is-obsolete-and-has-been-replace
//in Android Studio version 3.1 dependencies compile word is replaced to implementation
//dadurch vermeiden der 5 obsolete-Warnungen durch den Compiler
dependencies {
implementation fileTree(dir: 'libs', include: ['.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.3-alpha', {
exclude group: 'com.android.support', module: 'support-annotations'
})
// compile 'com.android.support:appcompat-v7:26.1.0'
testImplementation 'junit:junit:4.13-beta-3'
// implementation('com.mapquest:mapping-android-sdk:1.3.2@aar') {
// transitive = true
// }
implementation('com.mapquest:mapping-android-sdk:2.0.10')
implementation group: 'com.mapbox.mapboxsdk', name: 'mapbox-android-sdk', version: '8.1.0'
}
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
************ sync Fehler **************
CONFIGURE SUCCESSFUL in 11s
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: app
ERROR: Failed to resolve: com.android.support:support-fragment:27.1.1
Add Google Maven repository and sync project
Show in Project Structure dialog
Affected Modules: app
ERROR: Failed to resolve: android.arch.lifecycle:livedata:1.1.1
Show in Project Structure dialog
Affected Modules: app
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: app
ERROR: Failed to resolve: com.android.support:multidex:1.0.2
Add Google Maven repository and sync project
Show in Project Structure dialog
Affected Modules: app
ERROR: Failed to resolve: com.android.support:support-core-utils:27.1.1
Add Google Maven repository and sync project
Show in Project Structure dialog
Affected Modules: app
************ build Fehler **************
Could not find com.android.support:support-annotations:27.1.1.
Searched in the following locations:
file:/C:/Users/Ad/AppData/Local/Android/sdk/extras/m2repository/com/android/support/support-annotations/27.1.1/support-annotations-27.1.1.pom
file:/C:/Users/Ad/AppData/Local/Android/sdk/extras/m2repository/com/android/support/support-annotations/27.1.1/support-annotations-27.1.1.jar
file:/C:/Users/Ad/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/support-annotations/27.1.1/support-annotations-27.1.1.pom
file:/C:/Users/Ad/AppData/Local/Android/sdk/extras/google/m2repository/com/android/support/support-annotations/27.1.1/support-annotations-27.1.1.jar
file:/C:/Users/Ad/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/27.1.1/support-annotations-27.1.1.pom
file:/C:/Users/Ad/AppData/Local/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/27.1.1/support-annotations-27.1.1.jar
https://jcenter.bintray.com/com/android/support/support-annotations/27.1.1/support-annotations-27.1.1.pom
https://jcenter.bintray.com/com/android/support/support-annotations/27.1.1/support-annotations-27.1.1.jar
http://artifactory.cloud.mapquest.com/artifactory/et-android-binaries/com/android/support/support-annotations/27.1.1/support-annotations-27.1.1.pom
http://artifactory.cloud.mapquest.com/artifactory/et-android-binaries/com/android/support/support-annotations/27.1.1/support-annotations-27.1.1.jar
Required by:
project :app > com.mapbox.mapboxsdk:mapbox-android-sdk:8.1.0
project :app > com.mapbox.mapboxsdk:mapbox-android-sdk:8.1.0 > com.mapbox.mapboxsdk:mapbox-android-telemetry:4.5.1
project :app > com.mapbox.mapboxsdk:mapbox-android-sdk:8.1.0 > com.mapbox.mapboxsdk:mapbox-android-accounts:0.2.0
Please install the Android Support Repository from the Android SDK Manager.
Open Android SDK Manager
— geändert am 06.07.2019, 14:17:35
Empfohlener redaktioneller Inhalt
Mit Deiner Zustimmung wird hier ein externer Inhalt geladen.
Mit Klick auf den oben stehenden Button erklärst Du Dich damit einverstanden, dass Dir externe Inhalte angezeigt werden dürfen. Dabei können personenbezogene Daten an Drittanbieter übermittelt werden. Mehr Infos dazu findest Du in unserer Datenschutzerklärung.