【发布时间】:2019-04-01 23:25:15
【问题描述】:
无法解决:multidex 打开文件
我在同步我的项目时发现了这个错误。
apply plugin: 'com.android.library'
android {
compileSdkVersion rootProject.compileSdkVersion
buildToolsVersion rootProject.buildToolsVersion
defaultConfig {
minSdkVersion 16
targetSdkVersion rootProject.targetSdkVersion
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
def system_dependencies = rootProject.ext.system_dependencies
compile system_dependencies.appcompat_v7
testCompile 'junit:junit:4.12'
}
我添加了这个,但它不起作用;
maven {
url 'https://maven.google.com'
}
我尝试了很多方法。如何解决?
【问题讨论】:
-
你的 Android Studio 和 Gradle 版本是多少?
-
我已经解决了。
标签: android android-studio gradle resolve