我在构建结束时得到了这个:
Unzipping C:\Users\jdoughty\.gradle\wrapper\dists\gradle-2.10-bin\2v0chm5oshw52qn5d7jjz7lo0\gradle-2.10-bin.zip to C:\Users\jdoughty\.gradle\wrapper\dists\gradle-2.10-bin\2v0chm5oshw52qn5d7jjz7lo0
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version from '10.0.1'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Build halted with errors.
这让我感到困惑,因为它似乎有版本......但这是我对正在发生的事情的原始理解。
这是我的.lime/config.xml
:
<?xml version="1.0" encoding="utf-8"?>
<config>
<section id="defines">
</section>
<define name="ANDROID_NDK_ROOT" value="C:\android-ndk-r15c-windows-x86_64\android-ndk-r15c" />
<define name="ANDROID_SDK" value="C:\Users\jdoughty\AppData\Local\Android\Sdk" />
<define name="JAVA_HOME" value='"C:\Program Files\Java\jdk-10.0.1"' />
<define name="ANDROID_SETUP" value="true" />
</config>
答案 0 :(得分:5)
我认为Android SDK支持还不支持Java 10(或9) - 尝试降级到Java 8。
此处有类似问题的报告:https://github.com/facebook/react-native/issues/17688