任务执行失败':react-native-background-timer:processReleaseResources'

时间:2018-05-15 07:17:35

标签: android linux reactjs react-native ubuntu-16.04

我安装了新的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

  • 已安装的节点,
  • 从git克隆并设置react-native项目,
  • 有模拟器及其工作。

在项目目录中安装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项目。我是反应原生的完全新手。

0 个答案:

没有答案