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
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 :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With