compiled successfully

This commit is contained in:
Dobromir Popov
2024-02-14 18:27:15 +02:00
parent 8edaa4b937
commit 7fd17ada80
3 changed files with 87 additions and 3 deletions

View File

@ -25,7 +25,7 @@ java -version
#:host
sudo apt-get install adb
#: emu
# : emu androidusr
cd /home/androidusr/tmp && npx react-native run-android
# RUN ln -s ${ANDROID_HOME}/emulator/emulator /usr/bin/
/emulator/emulator -list-avds
@ -38,8 +38,19 @@ RUN apt-get update && \
# Set JAVA_HOME environment variable to Java 17
ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64
wget https://download.java.net/java/GA/jdk21.0.2/f2283984656d49d69e91c558476027ac/13/GPL/openjdk-21.0.2_linux-x64_bin.tar.gz
tar -xzf openjdk-21.0.2_linux-x64_bin.tar.gz -C /home/androidusr/jdk
export JAVA_HOME=/home/androidusr/jdk
export JAVA_HOME=/home/androidusr/jdk/jdk-21.0.2
export PATH=$JAVA_HOME/bin:$PATH
source ~/.bashrc
source ~/.bashrc
cd /home/androidusr/tmp
npx react-native start
npx react-native run-android
# install voice on dev env (emulator)
npm install @react-native-voice/voice
react-native link @react-native-voice/voice