{"action":"created","issue":{"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Package/issues/102","repository_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Package","labels_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Package/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Package/issues/102/comments","events_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Package/issues/102/events","html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Package/issues/102","id":317129830,"number":102,"title":"Error build Android app","user":{"login":"nuvolarmobileteam","id":24604564,"avatar_url":"https://avatars2.githubusercontent.com/u/24604564?v=4","gravatar_id":"","url":"https://api.github.com/users/nuvolarmobileteam","html_url":"https://github.com/nuvolarmobileteam","followers_url":"https://api.github.com/users/nuvolarmobileteam/followers","following_url":"https://api.github.com/users/nuvolarmobileteam/following{/other_user}","gists_url":"https://api.github.com/users/nuvolarmobileteam/gists{/gist_id}","starred_url":"https://api.github.com/users/nuvolarmobileteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuvolarmobileteam/subscriptions","organizations_url":"https://api.github.com/users/nuvolarmobileteam/orgs","repos_url":"https://api.github.com/users/nuvolarmobileteam/repos","events_url":"https://api.github.com/users/nuvolarmobileteam/events{/privacy}","received_events_url":"https://api.github.com/users/nuvolarmobileteam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-24T08:52:22Z","updated_at":"2018-04-25T15:51:05Z","closed_at":"2018-04-25T15:51:05Z","author_association":"NONE","body":"Hi guys,\r\n\r\nAfter being able to generate a project using `forcereact create` the android app does not complete the build and this is the error I can see in the console\r\n\r\n```\r\norg.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformDexWithInstantRunDependenciesApkForDebug'.\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)\r\n\tat org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)\r\n\tat org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)\r\n\tat org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)\r\n\tat org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)\r\n\tat org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)\r\n\tat org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)\r\n\tat org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)\r\n\tat org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)\r\n\tat org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)\r\n\tat org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:626)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:581)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)\r\n\tat org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)\r\n\tat org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.RuntimeException: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: Failed to execute aapt\r\n\tat com.android.builder.profile.Recorder$Block.handleException(Recorder.java:55)\r\n\tat com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:104)\r\n\tat com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:212)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)\r\n\tat org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:46)\r\n\tat org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)\r\n\tat org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)\r\n\t... 32 more\r\nCaused by: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: Failed to execute aapt\r\n\tat com.android.build.gradle.internal.transforms.InstantRunDependenciesApkBuilder.transform(InstantRunDependenciesApkBuilder.java:152)\r\n\tat com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:221)\r\n\tat com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:217)\r\n\tat com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)\r\n\t... 48 more\r\nCaused by: com.android.ide.common.process.ProcessException: Failed to execute aapt\r\n\tat com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:809)\r\n\tat com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:797)\r\n\tat com.android.build.gradle.internal.transforms.InstantRunSplitApkBuilder.generateSplitApkResourcesAp(InstantRunSplitApkBuilder.java:375)\r\n\tat com.android.build.gradle.internal.transforms.InstantRunSplitApkBuilder.generateSplitApkResourcesAp(InstantRunSplitApkBuilder.java:323)\r\n\tat com.android.build.gradle.internal.transforms.InstantRunSplitApkBuilder.generateSplitApk(InstantRunSplitApkBuilder.java:211)\r\n\tat com.android.build.gradle.internal.transforms.InstantRunDependenciesApkBuilder.transform(InstantRunDependenciesApkBuilder.java:149)\r\n\t... 51 more\r\nCaused by: java.util.NoSuchElementException\r\n\tat com.google.common.collect.AbstractIndexedListIterator.next(AbstractIndexedListIterator.java:80)\r\n\tat com.google.common.collect.Iterators.getOnlyElement(Iterators.java:315)\r\n\tat com.google.common.collect.Iterables.getOnlyElement(Iterables.java:263)\r\n\tat com.android.builder.internal.aapt.v1.AaptV1.makePackageProcessBuilder(AaptV1.java:202)\r\n\tat com.android.builder.internal.aapt.AbstractProcessExecutionAapt.makeValidatedPackage(AbstractProcessExecutionAapt.java:67)\r\n\tat com.android.builder.internal.aapt.AbstractAapt.link(AbstractAapt.java:34)\r\n\tat com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:807)\r\n\t... 56 more\r\n```\r\n\r\nI've googled the error but could not find ther reason why this is happening.\r\nFYI, iOS project does build and works!\r\n\r\nThank you very much\r\n"},"comment":{"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Package/issues/comments/384337020","html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-Package/issues/102#issuecomment-384337020","issue_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-Package/issues/102","id":384337020,"user":{"login":"bhariharan","id":1820287,"avatar_url":"https://avatars1.githubusercontent.com/u/1820287?v=4","gravatar_id":"","url":"https://api.github.com/users/bhariharan","html_url":"https://github.com/bhariharan","followers_url":"https://api.github.com/users/bhariharan/followers","following_url":"https://api.github.com/users/bhariharan/following{/other_user}","gists_url":"https://api.github.com/users/bhariharan/gists{/gist_id}","starred_url":"https://api.github.com/users/bhariharan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhariharan/subscriptions","organizations_url":"https://api.github.com/users/bhariharan/orgs","repos_url":"https://api.github.com/users/bhariharan/repos","events_url":"https://api.github.com/users/bhariharan/events{/privacy}","received_events_url":"https://api.github.com/users/bhariharan/received_events","type":"User","site_admin":false},"created_at":"2018-04-25T15:51:05Z","updated_at":"2018-04-25T15:51:05Z","author_association":"CONTRIBUTOR","body":"@nuvolarmobileteam I have fixed this issue [here](https://github.com/forcedotcom/SalesforceMobileSDK-Templates/pull/115). We were using a deprecated version of `aapt` that stopped working with the latest version of `Gradle`. Remove [this line](https://github.com/forcedotcom/SalesforceMobileSDK-Templates/pull/115/files#diff-4c60f716c6ef4adda69c348a0ceb5672L21) from your project's `gradle.properties` and things should work."}}
{"actor":{"display_login":"bhariharan"}}