java - Android app won't build - Fails with an exception -


in android studio, when try build app nothing base activity in it, i'm presented error says:

execution failed task ':app:packagedebug'. > implementing class 

someone told me give them stack trace, later didn't respond. when used --stacktrace when building, i'm presented this:

* exception is: org.gradle.api.tasks.taskexecutionexception: execution failed task ':app:packagedebug'. @ 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.defaulttaskplanexecutor.process(defaulttaskplanexecutor.java:23) @ 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.incompatibleclasschangeerror: implementing class @ com.android.builder.internal.packaging.packager.<init>(packager.java:360) @ com.android.builder.core.androidbuilder.packageapk(androidbuilder.java:1780) @ com.android.build.gradle.tasks.packageapplication.dofulltaskaction(packageapplication.java:206) @ com.android.build.gradle.internal.tasks.incrementaltask.taskaction(incrementaltask.java:79) @ 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 

thanks , :)

looks version conflict of 2 versions of same library (or dependencies) , gradle can't resolve it. have @ dependencies , make sure have 1 version of given library being used.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -