You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/27 15:12:13 UTC

[GitHub] [cordova-android] Guy-Sela commented on issue #764: feat: Build app bundles (.aab files)

Guy-Sela commented on issue #764: feat: Build app bundles (.aab files)
URL: https://github.com/apache/cordova-android/pull/764#issuecomment-578794647
 
 
   > I couldn't get cordova 8.1.0 to build anything other than an apk, so I resorted to using the following step between the ionic build and jarsigner steps:
   > 
   > cd ./platforms/android ; ./gradlew app:bundleRelease ; cd ../.. ;
   > 
   > which worked first time and the resulting signed bundle was accepted by the Play Store.
   > 
   > I hope that helps anyone with the same problem.
   
   Had a similar problem: I was getting .apk instead of .aab with all the above mentioned commands. What worked for me eventually was running: c:\Cordova\app_name\platforms\android>gradlew.bat bundle
   
   Might also worth mentioning here is that gradle is still looking for ANDROID_HOME environment variable, although it's officially deprecated.   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org