我安装了新的Ubuntu 18.04
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
我的回音$JAVA_HOME
返回/usr/lib/jvm/java-8-oracle
在项目目录中安装npm并在项目目录中启动npm然后每当我运行react-native run-android时。我在下面面对这个错误:
:react-native-background-timer:processReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-background-timer:processReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
project/android/app/build.grade
compile project(':react-native-background-timer')
请帮我设置react-native项目。我是反应原生的完全新手。