@mhe wrote:
Hi, I like to use ionic but I can't solve it's errors! please help me.
----------------------------------
Command Line:
`C:\Users\Mhe>cd todoC:\Users\Mhe\todo>ionic build android
Running command: "C:\Program Files\nodejs\node.exe" C:\Users\Mhe\todo\hooks\after_prepare\010_add_platform_class.js C:\Users\Mhe\todo
add to body class: platform-android
Running command: cmd "/s /c "C:\Users\Mhe\todo\platforms\android\cordova\build.bat""
ANDROID_HOME=C:\Android SDK
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_66
Running: C:\Users\Mhe\todo\platforms\android\gradlew cdvBuildDebug -b C:\Users\Mhe\todo\platforms\android\build.gradle -Dorg.gradle.daemon=true
:preBuild FAILEDFAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':preBuild'.failed to find Build Tools revision 23.0.0
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: 11.39 secs
C:\Users\Mhe\todo\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "C:\Users\Mhe\todo\platforms\android\gradlew cdvBuildDebug -b C:\Users\Mhe\todo\platforms\android\build.gradle -Dorg.gradle.daemon=true"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 1`
android sdk folder structure:
-- add-ons
-- build-tools
|--- 19.1
|--- 23
-- platforms
-- platform-tools
-- toolsThanks!
Posts: 1
Participants: 1