React native:无法生成APK

时间:2018-02-12 12:01:34

标签: android react-native apk

嘿我正在尝试为我的应用生成Android for Android,我按照React Native网站上的说明操作。

当我进入下一步时,我收到错误消息。

cd android && ./gradlew assembleRelease

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/Alia/Desktop/GroceriesApp/android/build.gradle' line: 25

* What went wrong:
A problem occurred evaluating root project 'GroceriesApp'.
> Could not find method android() for arguments [build_8iveiv727pjojj7ekhwcamif9$_run_closure2@30c4e352] on root project 'GroceriesApp' of type org.gradle.api.Project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 6.582 secs

我不知道为什么会这样。有什么想法吗?

0 个答案:

没有答案