[Build App Bundle ABB file] Generating an Android App Bundle (ABB file) from your Ionic app (without Android Studio)

Table of Contents

Generating an Android App Bundle from your Ionic app (without Android Studio)

https://medium.com/swlh/generating-an-android-app-bundle-from-your-ionic-app-without-android-studio-5bc3acaf4528

gradlew bundle

In the platforms/android you will run gradlew file with bundle task. The command looks like:

gradlew bundle

That’s it. Our .aab file has been generated and can be found at platforms/android/app/build/outputs/bundle/release folder.

image

image

Lỗi Unable to determine Android SDK directory.

image

Cách sửa

Tạo file tên local.properties nằm trong thư mục chứa gradlew bundle với nội dung như sau

sdk.dir=sdk.dir=/path/sdk example

Ví dụ trường hợp của mình là

sdk.dir=C:/Users/soiqu/AppData/Local/Android/Sdk

image

Để tìm được đường dẫn đến Android SDK thì mở Android Studio lên

image

image

Kết quả

image

https://stackoverflow.com/questions/67398608/unable-to-determine-android-sdk

Leave a Reply

Your email address will not be published. Required fields are marked *