Problem build simple project new user


#1

Hi I have new in Cordova and iconic. For the first step i try to create project with cordova and build the project. So this is my situation: I have download the sdk and the ndk and in ~/.bashrc I insert

export ANDROID_HOME="/media/alessio/Windows/home/android-sdk-linux"
export ANDROID_SDK="/media/alessio/Windows/home/android-sdk-linux"
export ANDROID_NDK="/media/alessio/Windows/home/android-ndk"
export ANDROID_PLATFORM_TOOLS="$ANDROID_SDK/platform-tools"
export ANDROID_TOOLS="$ANDROID_SDK/tools"
export PATH="${PATH}:$ANDROID_HOME/tools:$ANDROID_PLATFORM_TOOLS

(Note i save on windows partition because on ubuntu i don’t have space). So if I go under android-sdk/tools and launch android sdk open the sdk manager and after i installed all package. So i create a new cordova project add platform android and make cordova build android but i have this error

You may not have the required environment or OS to build this project
Error: Error code 1 for command: /home/alessio/Documenti/hello/platforms/android/gradlew with
args: cdvBuildDebug,-b,/home/alessio/Documenti/hello/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true


#2

Resolved. I use the cordova command with stacktrace and i see that there is a problem with build tools and after I have resolved the problem