Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Android Studio 2.1.2 - Pesado, lento e não funciona.

Olha não sei o que está acontecendo, sempre que tento fazer build acontece e o erro abaixo e trava (fica aumentando o tem em 10, 20 até 30 minutes ago), fora que essa IDE é muito pesada e lenta, não funciona direito, sendo que o meu note é um i5, 1tb, 8GB de RAM.

Erro

Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies]

Configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2411Library
:app:prepareComAndroidSupportAppcompatV72411Library
:app:prepareComAndroidSupportSupportV42411Library
:app:prepareComAndroidSupportSupportVectorDrawable2411Library
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:mergeDebugShaders
:app:compileDebugShaders
:app:generateDebugAssets
:app:mergeDebugAssets
:app:generateDebugResValues
:app:generateDebugResources
:app:mergeDebugResources
Exception in thread "png-cruncher_1" java.lang.ExceptionInInitializerError
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NumberFormatException: For input string: "SLAVE_AAPT_TIMEOUT = 30"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:580)
    at java.lang.Integer.parseInt(Integer.java:615)
    at com.android.builder.png.AaptProcess.<clinit>(AaptProcess.java:43)
    ... 4 more
Exception in thread "png-cruncher_3" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_4" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_5" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_2" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_16" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_17" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_18" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_19" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_20" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_11" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_12" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_14" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_13" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_15" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_8" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_10" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_9" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_6" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
Exception in thread "png-cruncher_7" java.lang.NoClassDefFoundError: Could not initialize class com.android.builder.png.AaptProcess
    at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:164)
    at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106)
    at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
    at java.lang.Thread.run(Thread.java:745)
1 resposta
solução!

Achei o erro, estava na variável de ambiente do windows que estava com o valor "SLAVE_AAPT_TIMEOUT = 30" e o correto seria "30", mas continuo achando o IDE lento