Upgrade the SDK version to the latest possibile but also download the Android 4.4.2 (19 version with latest revision).
1- With a command line on your cordova project run:
$ cordova platform add android
2- Create an android emulator$ cd ~/.android/avd
$ android create avd -n my_android -t 2 --abi default/x86
$ cd your_project
$ cordova build android
$ android
5- Install the Intel HAXM hardware acceleration selecting and installing the package:
Intel x86 Emulator Acceleration (HAXM installer)
Then after dowloading this package open the dmg file on SDK/extras/Intel and install it
6- Start the emulator (this open the app)
$ cordova emulate android
If HAX is not installed or you want to run on a real device, connect to the Mac though USB cable, then locate the apk built before and install it on the device:
$ adb install your_project/platform/android/ant-build/CordovaApp-debug.apk
Then open the app on the device.
Nessun commento:
Posta un commento