java - Gradle build slow after adding symja and log4j-1.2.11 to android stuido -


i have tried this:

build, execution, deployment > build tool > gradle

and check offline work checkbox in global gradle settings.

however not seem make difference.

edit- have added --stacktrace compiler option `

            apply plugin: 'com.android.application'              android {                 compilesdkversion 21                 buildtoolsversion "23.0.1"                  defaultconfig {                     applicationid "com.hr.hrproductions.mathapptake5"                     minsdkversion 21                     targetsdkversion 21                     versioncode 1                     versionname "1.0"                 }                 buildtypes {                     release {                         minifyenabled false                         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'                     }                 }             }              dependencies {                 compile filetree(dir: 'libs', include: ['*.jar'])                 compile files('libs/wolframalpha-1.1.jar')                 compile files('libs/commons-math3-3.5.jar')                 compile files('libs/log4j-1.2.11.jar')                 compile files('libs/symja-2015-09-26.jar')             }`                 failure: build failed exception.              * went wrong:             execution failed task ':app:predexdebug'.             > com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command 'c:\program files\java\jdk1.7.0_75\bin\java.exe'' finished non-zero exit value 3              * try:             run --stacktrace option stack trace. run --info or --debug option more log output.                             * exception is:             org.gradle.api.tasks.taskexecutionexception: execution failed task ':app:predexdebug'.                     @ org.gradle.api.internal.tasks.execution.executeactionstaskexecuter.executeactions(executeactionstaskexecuter.java:69)                     @ org.gradle.api.internal.tasks.execution.executeactionstaskexecuter.execute(executeactionstaskexecuter.java:46)                     @ org.gradle.api.internal.tasks.execution.postexecutionanalysistaskexecuter.execute(postexecutionanalysistaskexecuter.java:35)                     @ org.gradle.api.internal.tasks.execution.skipuptodatetaskexecuter.execute(skipuptodatetaskexecuter.java:64)                     @ org.gradle.api.internal.tasks.execution.validatingtaskexecuter.execute(validatingtaskexecuter.java:58)                     @ org.gradle.api.internal.tasks.execution.skipemptysourcefilestaskexecuter.execute(skipemptysourcefilestaskexecuter.java:42)                     @ org.gradle.api.internal.tasks.execution.skiptaskwithnoactionsexecuter.execute(skiptaskwithnoactionsexecuter.java:52)                     @ org.gradle.api.internal.tasks.execution.skiponlyiftaskexecuter.execute(skiponlyiftaskexecuter.java:53)                     @ org.gradle.api.internal.tasks.execution.executeatmostoncetaskexecuter.execute(executeatmostoncetaskexecuter.java:43)                     @ org.gradle.api.internal.abstracttask.executewithoutthrowingtaskfailure(abstracttask.java:310)                     @ org.gradle.execution.taskgraph.abstracttaskplanexecutor$taskexecutorworker.executetask(abstracttaskplanexecutor.java:79)                     @ org.gradle.execution.taskgraph.abstracttaskplanexecutor$taskexecutorworker.processtask(abstracttaskplanexecutor.java:63)                     @ org.gradle.execution.taskgraph.abstracttaskplanexecutor$taskexecutorworker.run(abstracttaskplanexecutor.java:51)                     @ org.gradle.execution.taskgraph.paralleltaskplanexecutor.process(paralleltaskplanexecutor.java:45)                     @ org.gradle.execution.taskgraph.defaulttaskgraphexecuter.execute(defaulttaskgraphexecuter.java:88)                     @ org.gradle.execution.selectedtaskexecutionaction.execute(selectedtaskexecutionaction.java:37)                     @ org.gradle.execution.defaultbuildexecuter.execute(defaultbuildexecuter.java:62)                     @ org.gradle.execution.defaultbuildexecuter.access$200(defaultbuildexecuter.java:23)                     @ org.gradle.execution.defaultbuildexecuter$2.proceed(defaultbuildexecuter.java:68)                     @ org.gradle.execution.dryrunbuildexecutionaction.execute(dryrunbuildexecutionaction.java:32)                     @ org.gradle.execution.defaultbuildexecuter.execute(defaultbuildexecuter.java:62)                     @ org.gradle.execution.defaultbuildexecuter.execute(defaultbuildexecuter.java:55)                     @ org.gradle.initialization.defaultgradlelauncher.dobuildstages(defaultgradlelauncher.java:149)                     @ org.gradle.initialization.defaultgradlelauncher.dobuild(defaultgradlelauncher.java:106)                     @ org.gradle.initialization.defaultgradlelauncher.run(defaultgradlelauncher.java:86)                     @ org.gradle.launcher.exec.inprocessbuildactionexecuter$defaultbuildcontroller.run(inprocessbuildactionexecuter.java:90)                     @ org.gradle.tooling.internal.provider.runner.buildmodelactionrunner.run(buildmodelactionrunner.java:54)                     @ org.gradle.launcher.exec.chainingbuildactionrunner.run(chainingbuildactionrunner.java:35)                     @ org.gradle.launcher.exec.inprocessbuildactionexecuter.execute(inprocessbuildactionexecuter.java:41)                     @ org.gradle.launcher.exec.inprocessbuildactionexecuter.execute(inprocessbuildactionexecuter.java:28)                     @ org.gradle.launcher.daemon.server.exec.executebuild.dobuild(executebuild.java:49)                     @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36)                     @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120)                     @ org.gradle.launcher.daemon.server.exec.watchfordisconnection.execute(watchfordisconnection.java:37)                     @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120)                     @ org.gradle.launcher.daemon.server.exec.resetdeprecationlogger.execute(resetdeprecationlogger.java:26)                     @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120)                     @ org.gradle.launcher.daemon.server.exec.requeststopifsingleuseddaemon.execute(requeststopifsingleuseddaemon.java:34)                     @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120)                     @ org.gradle.launcher.daemon.server.exec.forwardclientinput$2.call(forwardclientinput.java:74)                     @ org.gradle.launcher.daemon.server.exec.forwardclientinput$2.call(forwardclientinput.java:72)                     @ org.gradle.util.swapper.swap(swapper.java:38)                     @ org.gradle.launcher.daemon.server.exec.forwardclientinput.execute(forwardclientinput.java:72)                     @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120)                     @ org.gradle.launcher.daemon.server.health.daemonhealthtracker.execute(daemonhealthtracker.java:47)                     @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120)                     @ org.gradle.launcher.daemon.server.exec.logtoclient.dobuild(logtoclient.java:66)                     @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36)                     @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120)                     @ org.gradle.launcher.daemon.server.exec.establishbuildenvironment.dobuild(establishbuildenvironment.java:71)                     @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36)                     @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120)                     @ org.gradle.launcher.daemon.server.health.hintgcafterbuild.execute(hintgcafterbuild.java:41)                     @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120)                     @ org.gradle.launcher.daemon.server.exec.startbuildorrespondwithbusy$1.run(startbuildorrespondwithbusy.java:50)                     @ org.gradle.launcher.daemon.server.daemonstatecoordinator$1.run(daemonstatecoordinator.java:246)                     @ org.gradle.internal.concurrent.executorpolicy$catchandrecordfailures.onexecute(executorpolicy.java:54)                     @ org.gradle.internal.concurrent.stoppableexecutorimpl$1.run(stoppableexecutorimpl.java:40)             caused by: java.lang.runtimeexception: com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command 'c:\program files\java\jdk1.7.0_75\bin\java.exe'' finished non-zero exit value 3                     @ com.android.ide.common.internal.waitableexecutor.waitfortaskswithquickfail(waitableexecutor.java:116)                     @ com.android.ide.common.internal.waitableexecutor$waitfortaskswithquickfail$0.call(unknown source)                     @ com.android.build.gradle.tasks.predex.taskaction(predex.groovy:114)                     @ org.gradle.internal.reflect.javamethod.invoke(javamethod.java:75)                     @ org.gradle.api.internal.project.taskfactory.annotationprocessingtaskfactory$incrementaltaskaction.doexecute(annotationprocessingtaskfactory.java:243)                     @ org.gradle.api.internal.project.taskfactory.annotationprocessingtaskfactory$standardtaskaction.execute(annotationprocessingtaskfactory.java:219)                     @ org.gradle.api.internal.project.taskfactory.annotationprocessingtaskfactory$incrementaltaskaction.execute(annotationprocessingtaskfactory.java:230)                     @ org.gradle.api.internal.project.taskfactory.annotationprocessingtaskfactory$standardtaskaction.execute(annotationprocessingtaskfactory.java:208)                     @ org.gradle.api.internal.tasks.execution.executeactionstaskexecuter.executeaction(executeactionstaskexecuter.java:80)                     @ org.gradle.api.internal.tasks.execution.executeactionstaskexecuter.executeactions(executeactionstaskexecuter.java:61)                     ... 57 more             caused by: com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command 'c:\program files\java\jdk1.7.0_75\bin\java.exe'' finished non-zero exit value 3                     @ com.android.build.gradle.internal.process.gradleprocessresult.assertnormalexitvalue(gradleprocessresult.java:42)                     @ com.android.builder.core.androidbuilder.predexlibrary(androidbuilder.java:1387)                     @ com.android.builder.internal.compiler.predexcache.predexlibrary(predexcache.java:122)                     @ com.android.builder.core.androidbuilder.predexlibrary(androidbuilder.java:1330)                     @ com.android.builder.core.androidbuilder$predexlibrary$3.call(unknown source)                     @ com.android.build.gradle.tasks.predex$predextask.call(predex.groovy:158)                     @ com.android.build.gradle.tasks.predex$predextask.call(predex.groovy)             caused by: org.gradle.process.internal.execexception: process 'command 'c:\program files\java\jdk1.7.0_75\bin\java.exe'' finished non-zero exit value 3                     @ org.gradle.process.internal.defaultexechandle$execresultimpl.assertnormalexitvalue(defaultexechandle.java:365)                     @ com.android.build.gradle.internal.process.gradleprocessresult.assertnormalexitvalue(gradleprocessresult.java:40)                     ... 6 more               build failed              total time: 2 mins 33.602 secs 

according question error:execution failed task ':app:dexdebug' may be, use jar file or lib appearing multiple times in gradle script?

symjas 2015-09-26 development jar using latests commons-math 4 internally in it's jar. may not match commons-math 3 dependency.

try reduce libraries absolutely necessary.

i've used following symjadroid libraries in latest android reference app:

commons_math4_symja.jar jsr305.jar log4j-over-slf4j-1.7.2.jar   slf4j-android-1.6.1-rc1.jar symja-2015-10-03.jar  

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -