失败:构建失败,发生异常。 SDK目录不存在(但已定义)

时间:2018-08-10 17:52:15

标签: android react-native sdk

我尝试运行位于路径 E:\ JetSoftPro \ ReactStudy \ React-Native \ React-Native-TODO \ react-native-demo 上的react-native应用程序。 SDK位于路径 E:\ JetSoftPro \ Android \ sdk_as (文件android \ local.properties):

sdk.dir=E:\JetSoftPro\Android\sdk_as

因此,此sdk路径 E:\ JetSoftPro \ ReactStudy \ React-Native \ React-TODO \ react-native-demo \ frontend \ android \ E:JetSoftProAndroidsdk_as

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> The SDK directory 'E:\JetSoftPro\ReactStudy\React-Native\React-TODO\react-native-demo\frontend\android\E:JetSoftProAndroidsdk_as' does not exist.

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

BUILD FAILED

Total time: 1 mins 21.008 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html

我该如何解决这个问题?

0 个答案:

没有答案