'Generate Signed Bundle: Errors while building Bundle file. 'other' has different root
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
Solution 1:[1]
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.
Solution 2:[2]
This works for APK
but for AAB
You must have the keystore file and generated APK FOLDER on the same drive.
Solution 3:[3]
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:...".
Solution 4:[4]
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 :)
Solution 5:[5]
First change path of past version to another drive:
And key store path and destination folder must be in same folder:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Sylvain Brejeon |
Solution 2 | Aziz |
Solution 3 | Shasiru |
Solution 4 | Mick |
Solution 5 | showdev |