好的,这是一个奇怪的错误:
有没有人遇到过这样的错误?
提前致谢!
的build.gradle
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
applicationId "uy.com.hermes.tugentman.stecnico"
minSdkVersion 17
targetSdkVersion 21
versionCode 1007
versionName "v1.0.07"
setProperty("archivesBaseName", "Hermes_Tugentman_STecnico_7inch_$versionCode")
}
buildTypes {
release {
shrinkResources true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
applicationVariants.all { variant ->
variant.resValue "string", "app_ver", variant.versionName
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile files('libs/mapquest-android-sdk-1.0.5.jar')
compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
transitive = true;
}
compile('com.mapbox.mapboxsdk:mapbox-android-sdk:4.1.1@aar') {
transitive = true;
}
compile('io.fabric.sdk.android:fabric:1.3.10@aar') {
transitive = true;
}
}
Gradle Console
Executing tasks: [androidDependencies]
Configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature.
:app:androidDependencies
debug
+--- com.android.support:appcompat-v7:25.3.1@aar
| +--- com.android.support:support-annotations:25.3.1@jar
| +--- com.android.support:support-v4:25.3.1@aar
| | +--- com.android.support:support-compat:25.3.1@aar
| | | \--- com.android.support:support-annotations:25.3.1@jar
| | +--- com.android.support:support-media-compat:25.3.1@aar
| | | +--- com.android.support:support-annotations:25.3.1@jar
| | | \--- com.android.support:support-compat:25.3.1@aar
| | | \--- com.android.support:support-annotations:25.3.1@jar
| | +--- com.android.support:support-core-utils:25.3.1@aar
| | | +--- com.android.support:support-annotations:25.3.1@jar
... lines removed to fit SO post limit, they are all in this format, full file can be made available if someone need to see it ...
| | \--- com.android.support:support-core-utils:25.3.1@aar
| | +--- com.android.support:support-annotations:25.3.1@jar
| | \--- com.android.support:support-compat:25.3.1@aar
| | \--- com.android.support:support-annotations:25.3.1@jar
| \--- com.squareup.okhttp3:okhttp:3.3.0@jar
| \--- com.squareup.okio:okio:1.8.0@jar
+--- io.fabric.sdk.android:fabric:1.3.17@aar
+--- __local_jars__:F:\Dropbox\Workspaces\AndroidStudio\Tugentman_STecnico_v1\app\libs\mapquest-android-sdk-1.0.5.jar:unspecified@jar
\--- __local_jars__:F:\Dropbox\Workspaces\AndroidStudio\Tugentman_STecnico_v1\app\libs\mapquest-android-sdk-1.0.5.jar:unspecified@jar
debugAndroidTest
No dependencies
debugUnitTest
No dependencies
release
+--- com.android.support:appcompat-v7:25.3.1@aar
| +--- com.android.support:support-annotations:25.3.1@jar
| +--- com.android.support:support-v4:25.3.1@aar
| | +--- com.android.support:support-compat:25.3.1@aar
| | | \--- com.android.support:support-annotations:25.3.1@jar
| | +--- com.android.support:support-media-compat:25.3.1@aar
| | | +--- com.android.support:support-annotations:25.3.1@jar
| | | \--- com.android.support:support-compat:25.3.1@aar
| | | \--- com.android.support:support-annotations:25.3.1@jar
| | +--- com.android.support:support-core-utils:25.3.1@aar
| | | +--- com.android.support:support-annotations:25.3.1@jar
| | | \--- com.android.support:support-compat:25.3.1@aar
| | | \--- com.android.support:support-annotations:25.3.1@jar
| | +--- com.android.support:support-core-ui:25.3.1@aar
| | | +--- com.android.support:support-annotations:25.3.1@jar
| | | \--- com.android.support:support-compat:25.3.1@aar
| | | \--- com.android.support:support-annotations:25.3.1@jar
| | \--- com.android.support:support-fragment:25.3.1@aar
| | +--- com.android.support:support-compat:25.3.1@aar
... lines removed to fit SO post limit, they are all in this format, full file can be made available if someone need to see it ...
| | +--- com.android.support:support-core-ui:25.3.1@aar
| | | +--- com.android.support:support-annotations:25.3.1@jar
| | | \--- com.android.support:support-compat:25.3.1@aar
| | | \--- com.android.support:support-annotations:25.3.1@jar
| | \--- com.android.support:support-core-utils:25.3.1@aar
| | +--- com.android.support:support-annotations:25.3.1@jar
| | \--- com.android.support:support-compat:25.3.1@aar
| | \--- com.android.support:support-annotations:25.3.1@jar
| \--- com.squareup.okhttp3:okhttp:3.3.0@jar
| \--- com.squareup.okio:okio:1.8.0@jar
+--- io.fabric.sdk.android:fabric:1.3.17@aar
+--- __local_jars__:F:\Dropbox\Workspaces\AndroidStudio\Tugentman_STecnico_v1\app\libs\mapquest-android-sdk-1.0.5.jar:unspecified@jar
\--- __local_jars__:F:\Dropbox\Workspaces\AndroidStudio\Tugentman_STecnico_v1\app\libs\mapquest-android-sdk-1.0.5.jar:unspecified@jar
releaseUnitTest
No dependencies
BUILD SUCCESSFUL
Total time: 0.466 secs
答案 0 :(得分:1)
试试此代码
buildTypes {
release {
shrinkResources true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}