1
私は新しいプロジェクトを作成し、一度変更せずに実行しました。 しかし、プロジェクトは実行されておらず、こんにちは世界のアプリは 'Transform expection'を投げています。Android Studio 2.2.2で新しいプロジェクトが実行されない
物事は私が試した:
- multidex有効: - :
- パッケージオプションが除外同じエラー:同じエラー
- デックスのオプションは4グラムmaxheapsize - 同じエラーを
コード:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.blood_bank"
minSdkVersion 15
targetSdkVersion 25
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.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.0.1'
testCompile 'junit:junit:4.12'
}
Information:Gradle tasks [:app:clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:assembleDebug]
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: No dex files created at C:\Users\arcgis\AndroidStudioProjects\MyApplication\app\build\intermediates\transforms\dex\debug\folders\1000\5\slice_9
Information:BUILD FAILED
Information:Total time: 27.813 secs
Information:1 error
Information:0 warnings
Information:See complete output in console
無効にインスタント実行し、その後再試行してください。 –
あなたは私の日@JinalPatelを保存します....ありがとう、完璧な答え –
機能を無効にする必要がある場合はほとんど完璧です。基礎症状を症状ではなく治療してください。私は 'buildToolsVersion" 25.0.0 "'で始めるでしょう。 –