2016-04-08 5 views
6

'dan sonra yükselttikten sonra Android Studio'umu 1.5'ten 2.0'a yükseltmiştim. Uygulamam, Android 1.5'te güzel bir şekilde oluşturup çalıştıracaktır. Akıllı telefonumda app çalıştırmak denediğinizde Şimdi, bana bu hata veriyor:App, Android Studio 2.0 altında, 1.5

Error:Execution failed for task ':app:transformClassesWithInstantRunForDebug'. 
> 24 

Android Studio 2.0 üzerinde projemi açarak, bir mesaj kutusu sürüm 2 benim gradle yükseltmek için bana, çıktı, hangi Yaptım. Bu hatayı neden aldığımı bilmiyorum. ayarlara .. arama anlık ayarlarına çalıştırmak anlık işaretini kaldırın

Executing tasks: [clean, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugUnitTestSources, :app:compileDebugAndroidTestSources] 
Configuration on demand is an incubating feature. 
Incremental java compilation is an incubating feature. 
:clean UP-TO-DATE 
:app:clean 
:app:preBuild UP-TO-DATE 
:app:preDebugBuild UP-TO-DATE 
:app:checkDebugManifest 
:app:preReleaseBuild UP-TO-DATE 
:app:prepareComAndroidSupportAnimatedVectorDrawable2321Library 
:app:prepareComAndroidSupportAppcompatV72321Library 
:app:prepareComAndroidSupportCardviewV72321Library 
:app:prepareComAndroidSupportDesign2321Library 
:app:prepareComAndroidSupportMediarouterV72300Library 
:app:prepareComAndroidSupportRecyclerviewV72321Library 
:app:prepareComAndroidSupportSupportV42321Library 
:app:prepareComAndroidSupportSupportVectorDrawable2321Library 
:app:prepareComGoogleAndroidGmsPlayServices840Library 
:app:prepareComGoogleAndroidGmsPlayServicesAds840Library 
:app:prepareComGoogleAndroidGmsPlayServicesAnalytics840Library 
:app:prepareComGoogleAndroidGmsPlayServicesAppindexing840Library 
:app:prepareComGoogleAndroidGmsPlayServicesAppinvite840Library 
:app:prepareComGoogleAndroidGmsPlayServicesAppstate840Library 
:app:prepareComGoogleAndroidGmsPlayServicesAuth840Library 
:app:prepareComGoogleAndroidGmsPlayServicesBase840Library 
:app:prepareComGoogleAndroidGmsPlayServicesBasement840Library 
:app:prepareComGoogleAndroidGmsPlayServicesCast840Library 
:app:prepareComGoogleAndroidGmsPlayServicesDrive840Library 
:app:prepareComGoogleAndroidGmsPlayServicesFitness840Library 
:app:prepareComGoogleAndroidGmsPlayServicesGames840Library 
:app:prepareComGoogleAndroidGmsPlayServicesGcm840Library 
:app:prepareComGoogleAndroidGmsPlayServicesIdentity840Library 
:app:prepareComGoogleAndroidGmsPlayServicesLocation840Library 
:app:prepareComGoogleAndroidGmsPlayServicesMaps840Library 
:app:prepareComGoogleAndroidGmsPlayServicesMeasurement840Library 
:app:prepareComGoogleAndroidGmsPlayServicesNearby840Library 
:app:prepareComGoogleAndroidGmsPlayServicesPanorama840Library 
:app:prepareComGoogleAndroidGmsPlayServicesPlus840Library 
:app:prepareComGoogleAndroidGmsPlayServicesSafetynet840Library 
:app:prepareComGoogleAndroidGmsPlayServicesVision840Library 
:app:prepareComGoogleAndroidGmsPlayServicesWallet840Library 
:app:prepareComGoogleAndroidGmsPlayServicesWearable840Library 
:app:prepareDebugDependencies 
:app:compileDebugAidl 
:app:compileDebugRenderscript 
:app:generateDebugBuildConfig 
:app:generateDebugAssets UP-TO-DATE 
:app:mergeDebugAssets 
:app:generateDebugResValues UP-TO-DATE 
:app:generateDebugResources 
:app:mergeDebugResources 
:app:processDebugManifest 
:app:processDebugResources 
:app:generateDebugSources 
:app:mockableAndroidJar 
:app:preDebugUnitTestBuild UP-TO-DATE 
:app:prepareDebugUnitTestDependencies 
:app:preDebugAndroidTestBuild UP-TO-DATE 
:app:prepareDebugAndroidTestDependencies 
:app:compileDebugAndroidTestAidl 
:app:processDebugAndroidTestManifest 
:app:compileDebugAndroidTestRenderscript 
:app:generateDebugAndroidTestBuildConfig 
:app:generateDebugAndroidTestAssets UP-TO-DATE 
:app:mergeDebugAndroidTestAssets 
:app:generateDebugAndroidTestResValues UP-TO-DATE 
:app:generateDebugAndroidTestResources 
:app:mergeDebugAndroidTestResources 
:app:processDebugAndroidTestResources 
:app:generateDebugAndroidTestSources 
:app:compileDebugJavaWithJavac 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 

:app:compileDebugNdk UP-TO-DATE 
:app:compileDebugSources 
:app:compileDebugUnitTestJavaWithJavac 
:app:processDebugJavaRes UP-TO-DATE 
:app:processDebugUnitTestJavaRes UP-TO-DATE 
:app:compileDebugUnitTestSources 
:app:compileDebugAndroidTestJavaWithJavac 
:app:compileDebugAndroidTestNdk UP-TO-DATE 
:app:compileDebugAndroidTestSources 

BUILD SUCCESSFUL 

Total time: 1 mins 31.987 secs 
Executing tasks: [:app:clean, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :app:assembleDebug] 

Configuration on demand is an incubating feature. 
Incremental java compilation is an incubating feature. 
:app:clean 
:app:preBuild UP-TO-DATE 
:app:preDebugBuild UP-TO-DATE 
:app:checkDebugManifest 
:app:preReleaseBuild UP-TO-DATE 
:app:prepareComAndroidSupportAnimatedVectorDrawable2321Library 
:app:prepareComAndroidSupportAppcompatV72321Library 
:app:prepareComAndroidSupportCardviewV72321Library 
:app:prepareComAndroidSupportDesign2321Library 
:app:prepareComAndroidSupportMediarouterV72300Library 
:app:prepareComAndroidSupportRecyclerviewV72321Library 
:app:prepareComAndroidSupportSupportV42321Library 
:app:prepareComAndroidSupportSupportVectorDrawable2321Library 
:app:prepareComGoogleAndroidGmsPlayServices840Library 
:app:prepareComGoogleAndroidGmsPlayServicesAds840Library 
:app:prepareComGoogleAndroidGmsPlayServicesAnalytics840Library 
:app:prepareComGoogleAndroidGmsPlayServicesAppindexing840Library 
:app:prepareComGoogleAndroidGmsPlayServicesAppinvite840Library 
:app:prepareComGoogleAndroidGmsPlayServicesAppstate840Library 
:app:prepareComGoogleAndroidGmsPlayServicesAuth840Library 
:app:prepareComGoogleAndroidGmsPlayServicesBase840Library 
:app:prepareComGoogleAndroidGmsPlayServicesBasement840Library 
:app:prepareComGoogleAndroidGmsPlayServicesCast840Library 
:app:prepareComGoogleAndroidGmsPlayServicesDrive840Library 
:app:prepareComGoogleAndroidGmsPlayServicesFitness840Library 
:app:prepareComGoogleAndroidGmsPlayServicesGames840Library 
:app:prepareComGoogleAndroidGmsPlayServicesGcm840Library 
:app:prepareComGoogleAndroidGmsPlayServicesIdentity840Library 
:app:prepareComGoogleAndroidGmsPlayServicesLocation840Library 
:app:prepareComGoogleAndroidGmsPlayServicesMaps840Library 
:app:prepareComGoogleAndroidGmsPlayServicesMeasurement840Library 
:app:prepareComGoogleAndroidGmsPlayServicesNearby840Library 
:app:prepareComGoogleAndroidGmsPlayServicesPanorama840Library 
:app:prepareComGoogleAndroidGmsPlayServicesPlus840Library 
:app:prepareComGoogleAndroidGmsPlayServicesSafetynet840Library 
:app:prepareComGoogleAndroidGmsPlayServicesVision840Library 
:app:prepareComGoogleAndroidGmsPlayServicesWallet840Library 
:app:prepareComGoogleAndroidGmsPlayServicesWearable840Library 
:app:prepareDebugDependencies 
:app:compileDebugAidl 
:app:compileDebugRenderscript 
:app:generateDebugBuildConfig 
:app:generateDebugAssets UP-TO-DATE 
:app:mergeDebugAssets 
:app:generateDebugResValues UP-TO-DATE 
:app:generateDebugResources 
:app:mergeDebugResources 
:app:processDebugManifest 
:app:processDebugResources 
:app:generateDebugSources 
:app:mockableAndroidJar UP-TO-DATE 
:app:preDebugUnitTestBuild UP-TO-DATE 
:app:prepareDebugUnitTestDependencies 
:app:preDebugAndroidTestBuild UP-TO-DATE 
:app:prepareDebugAndroidTestDependencies 
:app:compileDebugAndroidTestAidl 
:app:processDebugAndroidTestManifest 
:app:compileDebugAndroidTestRenderscript 
:app:generateDebugAndroidTestBuildConfig 
:app:generateDebugAndroidTestAssets UP-TO-DATE 
:app:mergeDebugAndroidTestAssets 
:app:generateDebugAndroidTestResValues UP-TO-DATE 
:app:generateDebugAndroidTestResources 
:app:mergeDebugAndroidTestResources 
:app:processDebugAndroidTestResources 
:app:generateDebugAndroidTestSources 
:app:compileDebugJavaWithJavac 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 

:app:compileDebugNdk UP-TO-DATE 
:app:compileDebugSources 
:app:buildInfoDebugLoader 
:app:transformClassesWithExtractJarsForDebug 
:app:transformClassesWithInstantRunVerifierForDebug 
:app:transformClassesWithJavaResourcesVerifierForDebug 
:app:mergeDebugJniLibFolders 
:app:transformNative_libsWithMergeJniLibsForDebug 
:app:processDebugJavaRes UP-TO-DATE 
:app:transformResourcesWithMergeJavaResForDebug 
:app:transformResourcesAndNative_libsWithJavaResourcesVerifierForDebug UP-TO-DATE 
:app:transformClassesWithInstantRunForDebug FAILED 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':app:transformClassesWithInstantRunForDebug'. 
> 24 

* Try: 
+0

Hangi Android API ve Java JDK sürümleri kullanıyorsunuz? Daha fazla bilgi koymalısın. –

+0

Günlüğün sonunda denemenizi istediği şeyi yaptınız mı (burada kesiliyor)? --debug ve --stacktrace ile çalıştırırsanız daha fazla bilgi alabilirsiniz, ancak çıktıya daha fazla dikkat etmeniz gerekir. –

cevap

1

deneyin ve youll bakın: Benim telefonda uygulamayı çalıştırmak çalışırken Burada

alıyorum çıkıştır. ya da belki de kürsünün yolunu yenisine değiştirdin mi?

1

Android Studio 2.0 ile projenizi oluştururken aşağıdakine benzer bir mesaj kutusu gördünüz mü?

Studio 2.0 update prompt

Değilse, ardından güncellemek stüdyosu 2.0 ile projenizi oluştururken muhtemelen görünecektir Bu pencerede dikkat edin. Gradle-plugin versiyonunu 'com.android.tools.build:gradle:2.0.0' ve Gravür Sarıcı - distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip olarak değiştirecek veya kendiniz yapabilirsiniz. Daha fazla bilgi için this adresini ziyaret edin.

13

deneyin Android Studio Bu bana yardımcı olan 2.0

Anında Çalıştır seçeneğini devre dışı bırakın.

+0

Bu sorunu çözmek için çok zaman harcadım. Çok teşekkür ederim +1 –

+0

Bu benim için hiç işe yaramıyor. –