Boa tarde a todos,hoje quando fui abrir meu projeto ele ficou tentando realizar o download de arquivos relacionado ao maven-metadata,porémapósminutostentando ele retorna o seguinte erro: 无法解析':app @ debugAndroidTest / compileClasspath'的依赖关系:无法解析com.readystatesoftware.sqliteasset:sqliteassethelper:+。,porématéontemtudo estava funcionando normal。 Sealguémpuderme ajudar com esse problema。
Acredito que o erro esteja relacionado com o compile com.readystatesoftware.sqliteasset:sqliteassethelper:+。
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
classpath 'com.google.gms:google-services:3.2.0'
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
库:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.daniel.androidpedido"
minSdkVersion 17
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'
}
}
}
dependencies {
implementation('com.github.jd-alexander:android-flat-button:v1.1')
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:+'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
答案 0 :(得分:0)
在下面更改行
实现'com.readystatesoftware.sqliteasset:sqliteassethelper:+'
到
实现'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1'