简体   繁体   中英

Android Studio with Cordova CLI

I'd like to use Cordova CLI to create a new project and then import it to android studio to continue my work. Importing to android studio changes the project folder hierarchy (Adds everything under src/main/java) which would break the CLI going forward. How can I keep both android studio and cordova CLI happy at the same time ?! Thanks.

Suppose your are created your project under Hellocordova directory, before doing import build your project using the command cordova build android .

Use this as import location Hellocordova\\platforms\\android .

It will works fine

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM