@bruno222 wrote:
I`m following this guide to install a new fresh Ionic2 here.
And I`m getting this error:
**ionic run android** WARN: ionic.config.js has been deprecated, you can remove it. Running 'run:before' gulp task before run [09:25:31] Starting 'clean'... [09:25:31] Finished 'clean' after 28 ms [09:25:31] Starting 'build'... [09:25:31] Starting 'sass'... [09:25:31] Starting 'html'... [09:25:31] Starting 'fonts'... [09:25:31] Starting 'scripts'... [09:25:31] Finished 'scripts' after 56 ms [09:25:31] Finished 'html' after 70 ms [09:25:31] Finished 'fonts' after 94 ms [09:25:32] Finished 'sass' after 1.21 s [09:25:50] Finished 'build' after 19 s [09:25:50] Starting 'run:before'... [09:25:50] Finished 'run:before' after 18 μs • You're trying to build for android, but don't have the platform installed yet. ∆ Installing android for you. √ Installed platform android Installing cordova-plugin-device Installing cordova-plugin-console Installing cordova-plugin-whitelist Installing cordova-plugin-splashscreen Installing cordova-plugin-statusbar Installing ionic-plugin-keyboard Running command: C:\Server\nodejs\node.exe C:\#Temp\testeApp\hooks\after_prepare\010_add_platform_class.js C:\#Temp\testeApp add to body class: platform-android ANDROID_HOME=C:\Users\Bruno\AppData\Local\android-sdk-windows JAVA_HOME=C:\Program Files\java\jdk1.8.0_77 No target specified, deploying to emulator No emulator specified, defaulting to Aloteste Waiting for emulator... terminate called after throwing an instance of std::logic_error what(): basic_string::_S_construct null not valid This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. ------------------------------------------- **ionic info** WARN: ionic.config.js has been deprecated, you can remove it. Your system information: Cordova CLI: 6.1.1 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 2.0.0-beta.4 Ionic CLI Version: 2.0.0-beta.25 Ionic App Lib Version: 2.0.0-beta.15 OS: Windows 7 SP1 Node Version: v5.7.1
Any ideas? Should I install a previous version of jdk?
Posts: 5
Participants: 3