Giter VIP home page Giter VIP logo

Comments (4)

bandit-ibayashi avatar bandit-ibayashi commented on June 2, 2024 1

@naotoisoda Thank you for your report. I was able to reproduce your issue.
To create an APK, I tried the method of creating an APK file from an AAB file.

The following was tried without changing the original files of our latest SDK package (v1.1), such as bundle.gradle.
I have also run it in the example folder.

% react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/

To create the aab file.
% cd android
% ./gradlew bundleDebug

After converting the aab file to an apks file using the bundletool provided by Google, unzip it with the unzip command, which will output an apk file (universal.apk).
% bundletool build-apks --mode=universal --bundle=app-debug.aab --output=app-debug.apks
% unzip app-debug.apks

I am afraid it is not your way, but I hope it helps.

from react-native-star-io10.

naotoisoda avatar naotoisoda commented on June 2, 2024 1

@bandit-ibayashi
Thank you for your support.
Thanks to you , I could have made apk file.

Honestly speaking , on the way , I found I was able to distribute my test app by using aab file.
So, I used aab file created on the process 4.below. Thus , I didn't use apk file created on the process 6..
The problem I wrote above is occured on creating apk file ,but not occured when creating aab file.
But as a result , I could have solved my problem thanks to you.
I appreciate your help.

Here is what I tried.

1.Download bundletool at https://github.com/google/bundletool/releases
2. put bundletool-all-1.9.0.jar file on the directory.
3.
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
4.create the aab file.

cd android
./gradlew bundleDebug

→app-debug.aab was made on the android/app/build/outputs/bundle/debug directory.
5.make universal.apk
bundletool build-apks --mode=universal --bundle=app/build/outputs/bundle/debug/app-debug.aab --output=app-debug.apks
→app-debug.apks was made on the android directory.
6.unzip
unzip app-debug.apks
→universal.apk was made on the android directory.

from react-native-star-io10.

bandit-ibayashi avatar bandit-ibayashi commented on June 2, 2024

@naotoisoda I am glad to see that you have successfully achieved your goal!

from react-native-star-io10.

gare-bear avatar gare-bear commented on June 2, 2024

@bandit-ibayashi this sounds like a great topic to add to the Wiki once we enable it on this repo.

from react-native-star-io10.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.