當我運行在Android工作室的應用程序,我得到這個錯誤執行失敗例外
執行失敗的任務 「:應用程序:transformClassesWithDexForDebug」。
com.android.build.api.transform.TransformException:
了java.lang.RuntimeException:
了java.lang.RuntimeException:無法 預DEX 「C:\用戶\ abbasooo .android \建立緩存\ 02f0747de7a8d30b23f383d74adce1e1ad5192a4 \輸出\罐子\ classes.jar '的
到
' C:\用戶\ abbasooo \桌面\ tesssst \應用\建立\中間體\變換\ DEX \調試\文件夾\ 1000 \ 10 \ classes_571d6b5e229e10768234d4a86b076939bc9a4c44' **
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "com.abbasooo.tesssst"
minSdkVersion 9
targetSdkVersion 24
versionCode 1
versionName "1.0"
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.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.+'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'
compile 'com.android.support:design:24.+'
testCompile 'junit:junit:4.12'
}
這是我的AndroidManifest.xml 強大的文本
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.abbasooo.tesssst">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
當您清理和重建項目時會發生什麼? – rtrigoso