Generate Signed Bundle: Errors while building Bundle file. 'other' has different root

Viewed 16665

The following error occur when I tried to Generate Signed Bundle. Note: Error occurs after I updated my android studio 3.6.3 to version 4.0 and Gradle build to 6.1.1. * What went wrong: Execution failed for task ':app:signReleaseBundle'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade 'other' has different root

6 Answers

Same here. Looks like it does not like to build to another drive letter. i.e. Key store path is on D: and destination folder on E: and I get the message 'other' has different root. Note that the file seems to be produced on E: anyway. When I change destination folder to D: it's all ok.

This works for APK but for AAB You must have the keystore file and generated APK FOLDER on the same drive.

For generating .aab bundle file, your bundle file destination must be in the same drive as where your project is located. For .aab files the key store location is not relevant.

Ex: if your project is somewhere in drive "D:..." then your bundle file location must be somewhere in drive "D:...".

I had previously, temporarily had my project on drive E, I moved it back to drive C, got the 'other' has different root message. Solution for me: deleted first "intermediates" folder [did not work] then deleted both .gradle and .idea folders Problem solved :)

The project and Keystore file should have the same drive other this error will arise.

First change path of past version to another drive:

enter image description here

And key store path and destination folder must be in same folder:

enter image description here

Related