IntelliJ IDEA 14 + Phonegap 5.1 + Android SDK + Genymotion + linux
来源:互联网 发布:puppy linux吧 编辑:程序博客网 时间:2024/06/06 09:11
refs:
https://tahsinrahit.wordpress.com/2015/07/11/intellij-idea-14-phonegap-5-1-android-sdk-genymotion-linux/
It is bit tricky to do this all together. Let me give me a overview why I choose these tools .
- IntelliJ IDEA is an IDE I love working on. Actually for all of my developing purpose I use Jetbrain’s Product. PhpStorm, PyCharm, WebStorm. Since, it is not targeted for native android development choosing Android Studio is not necessary. I use that for native as it.
- Phonegap is being used as I need to develop hybrid app. Android SDK is needed for deployment in android platform.
- You may ask why Genymotion in lieu of AVD. The answer is, Genymotion seems faster to me. If you have already use AVD, it is not important how high end machine you use, I am sure you are very annoyed when you try to emulate. Genymotion may reduce your anger to some extent.
- Linux: seriously?? You are going to ask me why linux??
How to:
Downloads & Installations:
- To use phonegap make sure you have node.js and npm installed in you system. Then run following command.
$ sudo npm install -g phonegap
- Download android SDK. Extract it to the folder where you want to install it. Lets say it is the“home” folder. ~/android-sdk-linux Add ~/android-sdk-linux/tools and ~/android-sdk-linux/platform-tools to your path variable.
- Run $ andoird and download necessary libraries and API.
- Download genymotion and install it and install it buy running the .bin file.
- Download IntelliJ IDEA. Extract it to the folder where you want to install it. Lets say it is the“home” folder
- run $ bin/idea.sh (make sure it is executable) and follow the installation process.
Setting Up:
- Install “Genymotion” and “Phonegap/Cordova” plugin. To install it, go to Settings → Plugins → Install JetBrains plugin…, then select PhoneGap/Cordova Plugin and click Install plugin. Same goes for genymotion.
- Create a new project using Web Static → Phonegap/Cordova category.
- after project creating the project open Project Structure (ctrl+shift+alt+s) in SDK add JDK library then Android SDK.
- On same window (Project Structure) select Modules. Click on (+) → import module. Selectandroid folder under platform folder. and click next. Important note that, do not import debug folders. When folder selection screen comes, select all folders (eg: ../android and all ../gen and ../src folder) except debug folders.
- Open Run/Debug Configuration.Click (+) → Android Application. Select then module you imported earlier. In Target Device select “Show Chooser Dialog” option.
- Run Genymotion and start your device.
- Run this newly created android configuration instead of Phonegap run and you will see your app running on your genymotion device.
Known Issue:
- No module in step 5 ?
– Make sure you have imported the module properly as described in step 4. - Errors on importing module ?
– Follow the instruction carefully. May be you have added debug folders too.
0 0
- IntelliJ IDEA 14 + Phonegap 5.1 + Android SDK + Genymotion + linux
- Intellij IDEA + Android SDK + Genymotion Emulator
- Intellij IDEA + Android SDK + Genymotion Emulator打造最佳Android开发环境
- Intellij IDEA + Android SDK + Genymotion Emulator打造最佳Android开发环境
- Ubuntu 64 + IntelliJ IDEA + Genymotion 搭建Android开发环境
- Intellij IDEA配置Android SDK开发环境
- Intellij IDEA +genymotion安装配置
- IntelliJ IDEA 配置SDK
- IntelliJ+GenyMotion最快android模拟器
- linux下Intellij Idea 14的安装
- linux下Intellij Idea 14的安装
- Android Studio : Intellij idea
- IntelliJ IDEA & Genymotion--接触新的开发工具
- 解决Android SDK / Android Studio(IntelliJ IDEA)更新不了(被墙)的问题
- idea,intellij idea,intellij idea 注册码,intellij idea 破解,intellij idea 14 注册码
- IntelliJ IDEA 或Android Studio中提示:Project SDK is not defined
- IDEA配置Android SDK
- Linux搭建Intellij IDEA server
- Java 动态代理机制分析及扩展(1)
- ios基本控件之UITextField
- SpringMVC 集成tiles时报 Connection timed out
- iOS开发系列--通知与消息机制
- 关于配置cors跨域
- IntelliJ IDEA 14 + Phonegap 5.1 + Android SDK + Genymotion + linux
- spoj LCMSUM
- [文章摘要]Semantic Enrichment and Analysis of Movement Data:Probably it is just Starting!
- JavaScript 自调用匿名函数
- SQL语句优化技巧
- SQL日期操作
- Android面试题3
- 关于栈深度
- HDU2141:Can you find it? (二分)