0 Replies Latest reply on Mar 14, 2019 7:31 AM by ivanf36697325

    [ANDROID] Build failed

    ivanf36697325 Level 1

      Hi, I'm new on phonegap. I tried to compile with phonegap build and i'm getting de next error.

       

      BUILD FAILED in 7s

      Command finished with error code 1: /var/gimlet/tmp/47004832596220/3499041/project/gradlew cdvBuildDebug,-b,/var/gimlet/tmp/47004832596220/3499041/project/build.gradle,-Dorg.gradle .daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Dorg.gradle.daemon=false

      Error: /var/gimlet/tmp/47004832596220/3499041/project/gradlew: Command failed with exit code 1 Error output:

      Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.

      java.lang.IllegalStateException: compileSdkVersion is not specified.

      at com.google.common.base.Preconditions.checkState(Preconditions.java:456)

      at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:590)

      at com.android.build.gradle.BasePlugin.lambda$null$3(BasePlugin.java:555)

      at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:81)

      at com.android.build.gradle.BasePlugin.lambda$createTasks$4(BasePlugin.java:551)

      at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDis patch.java:91)

      at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDis patch.java:80)

      at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.ja va:42)

      at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch. java:230)

      at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch. java:149)

      at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.ja va:58)

      at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch. java:324)

      at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch. java:234)

      at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:140)

      at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37)

      at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(Pro xyDispatchAdapter.java:93)

      at com.sun.proxy.$Proxy24.afterEvaluate(Unknown Source)

      at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleP rojectEvaluator.java:75)

      at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEv aluator.java:69)

      at org.gradle.configuration.project.LifecycleProjectEvaluator.access$100(LifecycleProjectEva luator.java:33)

      at org.gradle.configuration.project.LifecycleProjectEvaluator$ConfigureProject.run(Lifecycle ProjectEvaluator.java:103)

      at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.e xecute(DefaultBuildOperationExecutor.java:336)

      at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.e xecute(DefaultBuildOperationExecutor.java:328)

      at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationE xecutor.java:197)

      at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecu tor.java:107)

      at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvalu ator.java:49)

      at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:651)

      at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:133)

      at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35)

      at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator .java:62)

      at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38)

      at org.gradle.initialization.DefaultGradleLauncher$ConfigureBuild.run(DefaultGradleLauncher. java:246)

      at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.e xecute(DefaultBuildOperationExecutor.java:336)

      at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.e xecute(DefaultBuildOperationExecutor.java:328)

      at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationE xecutor.java:197)

      at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecu tor.java:107)

      at org.gradle.initialization.DefaultGradleLauncher.configureBuild(DefaultGradleLauncher.java :165)

      at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java: 124)

      at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:1 07)

      at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:78 )

      at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:75 )

      at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.ja va:152)

      at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:1 00)

      at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:75)

      at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunne r.java:28)

      at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)

      at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActio nRunner.java:32)

      at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$1.run(RunAsBuildOperationBu ildActionRunner.java:43)

      at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.e xecute(DefaultBuildOperationExecutor.java:336)

      at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.e xecute(DefaultBuildOperationExecutor.java:328)

      at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationE xecutor.java:197)

      at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecu tor.java:107)

      at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuil dActionRunner.java:40)

      at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildA ctionRunner.java:51)

      at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecute r.java:45)

      at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecute r.java:29)

      at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildAct ionExecuter.java:39)

      at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildAct ionExecuter.java:25)

      at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuil dActionExecuter.java:71)

      at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuil dActionExecuter.java:45)

      at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSet upBuildActionExecuter.java:51)

      at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSet upBuildActionExecuter.java:32)

      at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThread BuildActionExecuter.java:36)

      at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThread BuildActionExecuter.java:25)

      at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute( ParallelismConfigurationBuildActionExecuter.java:43)

      at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute( ParallelismConfigurationBuildActionExecuter.java:29)

      at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartPar amsValidatingActionExecuter.java:64)

      at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartPar amsValidatingActionExecuter.java:29)

      at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(Sessio nFailureReportingActionExecuter.java:55)

      at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(Sessio nFailureReportingActionExecuter.java:42)

      at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActio nExecuter.java:58)

      at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActio nExecuter.java:33)

      at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)

      at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)

      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecuti on.java:120)

      at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnectio n.java:37)

      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecuti on.java:120)

      at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLog ger.java:26)

      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecuti on.java:120)

      at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopI fSingleUsedDaemon.java:34)

      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecuti on.java:120)

      at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java: 74)

      at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java: 72)

      at org.gradle.util.Swapper.swap(Swapper.java:38)

      at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java :72)

      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecuti on.java:120)

      at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:5 0)

      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecuti on.java:120)

      at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)

      at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)

      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecuti on.java:120)

      at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEn vironment.java:82)

      at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)

      at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecuti on.java:120)

      at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrResp ondWithBusy.java:50)

      at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.jav a:297)

      at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPo licy.java:63)

      at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryI mpl.java:55)

      at java.lang.Thread.run(Thread.java:748)

       

      Where do I have to put the compilesdkversion?

       

      Thanks!