Menu

#2 android sdk and ndk path error

1.0
open
nobody
None
2018-03-05
2018-03-05
ramsestom
No

Hi.
I am trying to use this plugin on windows but when I try to offline build my project for android , I have this error:

Executing: gradle build

NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to C:\Users\Tom\workspace\XpressPark\android\C:DevelopmentAndroidandroid-sdk\ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.


FAILURE: Build failed with an exception.


* What went wrong:
A problem occurred configuring root project 'android'.
> The SDK directory 'C:\Users\Tom\workspace\XpressPark\android\C:DevelopmentAndroidandroid-sdk' does not exist.


* 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: 0.317 secs



Build failure (see the Notifications window for stacktrace): gradle build

So the plugin seems to mess up with the path where android sdk and android ndk are installed (they are in "C:\Development\Android\android-sdk" and "C:\Development\Android\android-ndk" respectively and 'C:\Users\Tom\workspace\XpressPark' is the folder containing my CN1 project.
I don't know why the android sdk path that I provided have been append to the path of my CN1 project and why the "\" characters in the path have been stripped out by the plugin...
How can I solve this issue? (I don't even know where to change the android sdk path used by the plugin. It asked me for it on install but I can't find any option to change it afterward...)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB