[Tutorial] Build Rocket.Chat.React Native in Android studio #4202
Replies: 14 comments 5 replies
|
You can run it in different ways: However, I recommend that you read the react native documentation, as it will explain more details on how to generate the keys or run them on your own device. Our project doesn't have so many particularities to the point of having its own documentation, following the official react native documentation will give you a guide on what to do. |
|
Redevelopment of development environment on Windows npm run build That's the result of the React logo spinning in the browser I copied the contents of "Rocket.Chat.ReactNative-4.26.0" to that project folder - npm ERR! A complete log of this run can be found in: I haven't checked the log yet, but is the method different? I'm going to try it in Android studio |
|
I was setting Linux from the middle lol "Welcome to React Native" on a USB-connected Android device I'm going to try building Rocket.Chat
|
|
Generate APK for initial react-native project `cd android Then install it on your smartphone via Google Drive It boots but looks like this First of all, I would like to know the correct APK generation method for the "initial react-native project". |
|
I've tried several methods but I get an error like this What does "Main Application" mean? Do I need to change any settings to build the Git source? `FAILURE: Build failed with an exception.
|
|
It looks like the build of v4.26 was successful But where is the apk? Most are the default settings. `> Configure project :rn-root-view
Welcome to Gradle 6.7. To run a build, run gradlew ... To see a list of available tasks, run gradlew tasks To see a list of command-line options, run gradlew --help To see more detail about a task, run gradlew help --task For troubleshooting, visit https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. BUILD SUCCESSFUL in 1m 33s |
|
android> ./gradlew assembleDebug Error related to icon when doing this `* What went wrong:
I confirmed that there was an icon. But error What is the solution to this? android \ app \ src \ main \ res |
|
hummm I did some things -Edit gradle.properties -Edit build.gradle But such an error `* What went wrong:
|
|
Rocket.Chat.ReactNative-4.26.0 \ android \ app \ build \ generated \ assets \ react \ e2eFoss \ release An "App Bundle" was generated here. How is the generation of apk without going through the store (play)? |
|
"App.bundle" was not recognized by Google Play. You need ".apk" or ".abb". What version did the build confirm to be successful? Quite difficult I need someone's help |
|
Rocket.Chat.ReactNative-4.26.0 Is there a version that does not produce the error that includes the gradle setting? |
|
Consumed a day by bugsnag |
|
I haven't slept for a week But rechecking the SDK and Gradle versions, the error changed a bit What kind of error is this? (scans.gradle) 1 script failure |
|
Does APK generation for Debug require source changes even if my settings are correct? ############################################################################# Debug level logging will leak security sensitive information! https://docs.gradle.org/6.9.2/userguide/logging.html#sec:debug_security |











You can run it in different ways:
The simplest is using yarn or npm, running the code: yarn android or npm start android.
In android studio you will need to select the android folder and android studio will do the rest. Then just press play.
However, I recommend that you read the react native documentation, as it will explain more details on how to generate the keys or run them on your own device.
https://reactnative.dev/docs/environment-setup
Our project doesn't have so many particularities to the point of having its own documentation, following the official react native documentation will give you a guide on what to do.