Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 590
Ahsan Iqbal Avatar asked May 29 '20 15:05

Ahsan Iqbal


4 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.

like image 121
Sylvain Brejeon Avatar answered Oct 18 '22 23:10

Sylvain Brejeon


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

like image 32
Aziz Avatar answered Oct 18 '22 23:10

Aziz


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:...".

like image 24
Shasiru Avatar answered Oct 18 '22 22:10

Shasiru


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 :)

like image 1
Mick Avatar answered Oct 18 '22 23:10

Mick