Comments (4)
@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.
@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.
@naotoisoda I am glad to see that you have successfully achieved your goal!
from react-native-star-io10.
@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)
- The sdk fails to discover printers over usb HOT 2
- Could not resolve all artifacts for configuration ':react-native-star-io10:classpath'. HOT 3
- No matching configuration of project :react-native-star-io10 was found.
- Why was the min android version changed from 6 to 9? HOT 3
- How to change the encoding if Chinese characters cannot be displayed. HOT 1
- Task :react-native-star-io10:bundleReleaseLocalLintAar FAILED HOT 2
- Error: StarIO10UnsupportedModelError: Not supported model TSP650II/TSP654II [REQUEST] HOT 2
- StarSpoolJobSettings not working on TSP650ii HOT 3
- Two Colour Printing with SP700 HOT 2
- what does this library accept as image or base64 ? HOT 2
- Apple's App Stores requires new privacy permissions from the library in order to be submitted to App Store HOT 4
- How to build apk with `:app:assembleRelease` HOT 6
- How to connect with USB printers? HOT 4
- kotlin-gradle-plugin version required by package not recent enough for react-native 0.73.0 HOT 9
- Execution failed for task ':app:checkDebugAarMetadata' HOT 2
- Cash drawer is opening constantly HOT 3
- Issue with formatting sp700 printout, stardot HOT 2
- Example app for iOS cannot be built with Xcode14.3 HOT 1
- [UWP] Example app for Windows x86 architecture cannot be built HOT 1
- 'React/RCTBridgeModule.h' file not found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-star-io10.