question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AAPT: unknown option '--no-proguard-location-reference'

See original GitHub issue

Describe the bug Using either the provided Android SDK from this tool, or my own via --config. I cannot run bubblewrap build due to some AAPT error. When using the global SDK, the $GRADLE_OPTS was still pointed to the local aapt2 though.

$ bubblewrap build

,-----.        ,--.  ,--.  ,--.
|  |) /_,--.,--|  |-.|  |-.|  |,---.,--.   ,--,--.--.,--,--.,---.
|  .-.  |  ||  | .-. | .-. |  | .-. |  |.'.|  |  .--' ,-.  | .-. |
|  '--' '  ''  | `-' | `-' |  \   --|   .'.   |  |  \ '-'  | '-' '
`------' `----' `---' `---'`--'`----'--'   '--`--'   `--`--|  |-'
                                                           `--'

... [ init bubblewrap] 

Building the Android App...


cli ERROR Command failed: ./gradlew assembleRelease --stacktrace

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processReleaseResources'.

> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     AAPT: unknown option '--no-proguard-location-reference'.

aapt2 link [options] -o arg --manifest arg files...

 ... [ aapt command args help ]

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processReleaseResources'.
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:205)
	at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:203)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:184)
	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109)
	at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
	at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62)
	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:372)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:359)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:352)
	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:338)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)
	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: com.android.ide.common.workers.WorkerExecutorException: 1 exception was raised by workers:
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

	at com.android.build.gradle.internal.tasks.Workers$WorkerExecutorAdapter.await(Workers.kt:190)
	at com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.doFullTaskAction(LinkApplicationAndroidResourcesTask.kt:305)
	at com.android.build.gradle.internal.tasks.IncrementalTask.handleIncrementalInputs(IncrementalTask.kt:108)
	at com.android.build.gradle.internal.tasks.IncrementalTask.access$handleIncrementalInputs(IncrementalTask.kt:64)
	at com.android.build.gradle.internal.tasks.IncrementalTask$taskAction$$inlined$recordTaskAction$1.invoke(AndroidVariantTask.kt:73)
	at com.android.build.gradle.internal.tasks.IncrementalTask$taskAction$$inlined$recordTaskAction$1.invoke(AndroidVariantTask.kt:34)
	at com.android.build.gradle.internal.tasks.Blocks.recordSpan(Blocks.java:91)
	at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction$gradle(IncrementalTask.kt:135)
	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104)
	at org.gradle.api.internal.project.taskfactory.IncrementalTaskInputsTaskAction.doExecute(IncrementalTaskInputsTaskAction.java:47)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:42)
	at org.gradle.api.internal.project.taskfactory.AbstractIncrementalTaskAction.execute(AbstractIncrementalTaskAction.java:25)
	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.run(ExecuteActionsTaskExecuter.java:568)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:553)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:536)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$300(ExecuteActionsTaskExecuter.java:109)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.executeWithPreviousOutputFiles(ExecuteActionsTaskExecuter.java:276)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:265)
	at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$0(ExecuteStep.java:32)
	at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:32)
	at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)
	at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:63)
	at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:35)
	at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:49)
	at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:34)
	at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:43)
	at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)
	at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)
	at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34)
	at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:44)
	at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:54)
	at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:38)
	at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49)
	at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:153)
	at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:67)
	at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:41)
	at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:44)
	at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:33)
	at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)
	at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)
	at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:92)
	at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:85)
	at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)
	at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:39)
	at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:76)
	at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)
	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36)
	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26)
	at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:94)
	at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:49)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:79)
	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:53)
	at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:74)
	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda$execute$2(SkipEmptyWorkStep.java:78)
	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:78)
	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:34)
	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:39)
	at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:40)
	at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:28)
	at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:192)
	... 30 more
Caused by: org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
	at org.gradle.workers.internal.DefaultWorkerExecutor$WorkItemExecution.waitForCompletion(DefaultWorkerExecutor.java:354)
	at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForItemsAndGatherFailures(DefaultAsyncWorkTracker.java:142)
	at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForItemsAndGatherFailures(DefaultAsyncWorkTracker.java:90)
	at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForAll(DefaultAsyncWorkTracker.java:80)
	at org.gradle.internal.work.DefaultAsyncWorkTracker.waitForCompletion(DefaultAsyncWorkTracker.java:68)
	at org.gradle.workers.internal.DefaultWorkerExecutor.await(DefaultWorkerExecutor.java:258)
	at com.android.build.gradle.internal.tasks.Workers$WorkerExecutorAdapter.await(Workers.kt:188)
	... 98 more

To Reproduce

  1. Run bubblewrap init (succeeded)
  2. Run bubblewrap build (failed)

Expected behavior The build process

Screenshots n/a

Desktop (please complete the following information):

  • OS: NixOS 21.05 (Okapi) x86_64
  • Browser: Firefox, Brave
  • Version: 86.0b9, 1.19.88 (88.0.4324.96)

Smartphone (please complete the following information):

  • Device: Xiamo Redmi K20 Pro
  • OS: Havoc OS (Android 10)
  • Browser: Firefox, Stock
  • Version: 86.0.0-beta5, 10

Additional context I know very little Java, Grandle, Android.

local, Nix Android SDK config:

{
  "androidSdkPath": "/nix/store/9j9nsm55fmg7g4rrg33646fissbx8cr2-androidsdk/libexec/android-sdk",
  "jdkPath": "/nix/store/q839v7q4k8s958zs2smmwm6id72xjsva-openjdk-headless-8u272-b10"
}

global Android SDK config:

{
  "androidSdkPath": "$HOME/.bubblewrap/android_sdk",
  "jdkPath": "/nix/store/q839v7q4k8s958zs2smmwm6id72xjsva-openjdk-headless-8u272-b10"
}

Attempting to run the Gradle command manually

$ echo $GRADLE_OPTS 
-Dorg.gradle.project.android.aapt2FromMavenOverride=/nix/store/9j9nsm55fmg7g4rrg33646fissbx8cr2-androidsdk/libexec/android-sdk/build-tools/29.0.2/aapt2

$ exa --long /nix/store/9j9nsm55fmg7g4rrg33646fissbx8cr2-androidsdk/libexec/android-sdk/build-tools/29.0.2/
.r-xr-xr-x 1.5M root 1970-01-01 aapt
.r-xr-xr-x 4.3M root 1970-01-01 aapt2
.r-xr-xr-x 1.9M root 1970-01-01 aarch64-linux-android-ld
.r-xr-xr-x 1.0M root 1970-01-01 aidl
.r-xr-xr-x 2.7k root 1970-01-01 apksigner
.r-xr-xr-x 3.6M root 1970-01-01 arm-linux-androideabi-ld
.r-xr-xr-x  63k root 1970-01-01 bcc_compat
.r--r--r--  18k root 1970-01-01 core-lambda-stubs.jar
.r-xr-xr-x 2.7k root 1970-01-01 d8
.r-xr-xr-x 1.3M root 1970-01-01 dexdump
.r-xr-xr-x 2.6k root 1970-01-01 dx
.r-xr-xr-x 3.6M root 1970-01-01 i686-linux-android-ld
dr-xr-xr-x    - root 1970-01-01 lib
dr-xr-xr-x    - root 1970-01-01 lib64
.r-xr-xr-x 1.2M root 1970-01-01 llvm-rs-cc
.r-xr-xr-x  316 root 1970-01-01 mainDexClasses
.r--r--r--  758 root 1970-01-01 mainDexClasses.rules
.r--r--r--  310 root 1970-01-01 mainDexClassesNoAapt.rules
.r-xr-xr-x 1.9M root 1970-01-01 mipsel-linux-android-ld
.r--r--r-- 766k root 1970-01-01 NOTICE.txt
dr-xr-xr-x    - root 1970-01-01 renderscript
.r--r--r--   17 root 1970-01-01 runtime.properties
.r--r--r--   63 root 1970-01-01 source.properties
.r-xr-xr-x 1.5M root 1970-01-01 split-select
.r-xr-xr-x 1.8M root 1970-01-01 x86_64-linux-android-ld
.r-xr-xr-x 262k root 1970-01-01 zipalign

$ ./gradlew assembleRelease --stacktrace 

> Configure project :app
WARNING: The option setting 'android.aapt2FromMavenOverride=/nix/store/9j9nsm55fmg7g4rrg33646fissbx8cr2-androidsdk/libexec/android-sdk/build-tools/29.0.2/aapt2' is experimental.
Exception while marshalling /nix/store/9j9nsm55fmg7g4rrg33646fissbx8cr2-androidsdk/libexec/android-sdk/build-tools/29.0.2/package.xml. Probably the SDK is read-only
Exception while marshalling /nix/store/9j9nsm55fmg7g4rrg33646fissbx8cr2-androidsdk/libexec/android-sdk/platform-tools/package.xml. Probably the SDK is read-only
Exception while marshalling /nix/store/9j9nsm55fmg7g4rrg33646fissbx8cr2-androidsdk/libexec/android-sdk/platforms/android-30/package.xml. Probably the SDK is read-only
Exception while marshalling /nix/store/9j9nsm55fmg7g4rrg33646fissbx8cr2-androidsdk/libexec/android-sdk/tools/package.xml. Probably the SDK is read-only

> Task :app:generateShorcutsFile UP-TO-DATE
> Task :app:preBuild UP-TO-DATE
> Task :app:extractProguardFiles UP-TO-DATE
> Task :app:preReleaseBuild UP-TO-DATE
> Task :app:compileReleaseAidl NO-SOURCE
> Task :app:compileReleaseRenderscript NO-SOURCE
> Task :app:generateReleaseBuildConfig UP-TO-DATE
> Task :app:javaPreCompileRelease UP-TO-DATE
> Task :app:generateReleaseResValues UP-TO-DATE
> Task :app:generateReleaseResources UP-TO-DATE
> Task :app:createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :app:extractDeepLinksRelease UP-TO-DATE
> Task :app:processReleaseManifest UP-TO-DATE
> Task :app:mergeReleaseShaders UP-TO-DATE
> Task :app:compileReleaseShaders NO-SOURCE
> Task :app:generateReleaseAssets UP-TO-DATE
> Task :app:mergeReleaseAssets UP-TO-DATE
> Task :app:checkReleaseDuplicateClasses UP-TO-DATE
> Task :app:processReleaseJavaRes NO-SOURCE
> Task :app:mergeReleaseJavaResource UP-TO-DATE
> Task :app:collectReleaseDependencies UP-TO-DATE
> Task :app:sdkReleaseDependencyData UP-TO-DATE
> Task :app:mergeReleaseJniLibFolders UP-TO-DATE
> Task :app:mergeReleaseNativeLibs UP-TO-DATE
> Task :app:stripReleaseDebugSymbols NO-SOURCE
> Task :app:mergeReleaseResources UP-TO-DATE
> Task :app:processReleaseResources FAILED

FAILURE: Build failed with an exception.

... [ same error as above ]

When trying to use the provided global aapt2.

$ exa --long $HOME/.bubblewrap/android_sdk/build-tools/29.0.2
.rwxr-xr-x 1.5M $USER 02-16 14:59 aapt
.rwxr-xr-x 4.3M $USER 02-16 14:59 aapt2
.rwxr-xr-x 1.9M $USER 02-16 14:59 aarch64-linux-android-ld
.rwxr-xr-x 991k $USER 02-16 14:59 aidl
.rwxr-xr-x 2.6k $USER 02-16 14:59 apksigner
.rwxr-xr-x 3.6M $USER 02-16 14:59 arm-linux-androideabi-ld
.rwxr-xr-x  49k $USER 02-16 14:59 bcc_compat
.rw-r--r--  18k $USER 02-16 14:59 core-lambda-stubs.jar
.rwxr-xr-x 2.6k $USER 02-16 14:59 d8
.rwxr-xr-x 1.3M $USER 02-16 14:59 dexdump
.rwxr-xr-x 2.6k $USER 02-16 14:59 dx
.rwxr-xr-x 3.6M $USER 02-16 14:59 i686-linux-android-ld
drwxr-xr-x    - $USER 02-16 14:59 lib
drwxr-xr-x    - $USER 02-16 14:59 lib64
.rwxr-xr-x 1.1M $USER 02-16 14:59 llvm-rs-cc
.rwxr-xr-x 4.7k $USER 02-16 14:59 mainDexClasses
.rw-r--r--  758 $USER 02-16 14:59 mainDexClasses.rules
.rw-r--r--  310 $USER 02-16 14:59 mainDexClassesNoAapt.rules
.rwxr-xr-x 1.9M $USER 02-16 14:59 mipsel-linux-android-ld
.rw-r--r-- 766k $USER 02-16 14:59 NOTICE.txt
.rw-r--r--  17k $USER 02-16 14:59 package.xml
drwxr-xr-x    - $USER 02-16 14:59 renderscript
.rw-r--r--   17 $USER 02-16 14:59 runtime.properties
.rw-r--r--   63 $USER 02-16 14:59 source.properties
.rwxr-xr-x 1.5M $USER 02-16 14:59 split-select
.rwxr-xr-x 1.8M $USER 02-16 14:59 x86_64-linux-android-ld
.rwxr-xr-x 250k $USER 02-16 14:59 zipalign

$ $HOME/.bubblewrap/android_sdk/build-tools/29.0.2/aapt2 
Failed to execute process '$HOME/.bubblewrap/android_sdk/build-tools/29.0.2/aapt2'. Reason:
The file '$HOME/.bubblewrap/android_sdk/build-tools/29.0.2/aapt2' does not exist or could not be executed.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
andrebancommented, Mar 4, 2021

v1.11.0 was released and uses build-tools version 30.0.3, which should fix this. Closing this issue, as it should have been fixed. @toastal please, re-open if that’s not the case.

1reaction
andrebancommented, Feb 16, 2021

Are you mutating the global SDK in this project? If so, how can you use this tool on multiple projects and expect any sort of deterministic builds?

No, this project doesn’t mutate the SDK. But the Android SDK itself may do it (a bit outside of my area of knowledge too).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android resource linking failed AAPT: unknown option
This process shows the error in build - :app:processDebugResources Android resource linking failed AAPT: unknown option '--no-proguard-location- ...
Read more >
Build Failed - Android Studio 4.0 - Gradle 6.1.1 · Issue #450
Android resource linking failed AAPT: unknown option '--proguard-minimal-keep-rules'. FAILURE: Build failed with an exception.
Read more >
AAPT2
Merges all library resources under the app's package. --no-proguard-location-reference, Keeps ProGuard rules files from having a reference to ...
Read more >
AAPT error Unknown option '--no-version-vectors - MSDN
After updating I started getting the following error "Unknown option '--no-version-vectors'". Anybody have any idea, how to fix it?
Read more >
Troubleshooting ProGuard issues on Android
One of the reasons warnings can appear is when one of your dependencies is compiled against JARs that are not on your build...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found