" java的:包org.apache.cordova不存在" Android Studio中编译的PhoneGap项目模板时 [英] "java: package org.apache.cordova does not exist" when compiling phonegap project template in Android Studio
问题描述
我是新来的Android和PhoneGap的发展,最近我遵循不同的互联网博客的指令,并试图安装的PhoneGap的Android工作室。之后,我成功地安装并遵守所有的设置(环境变量的工作人员...等),和我导入的PhoneGap项目进入Android的工作室后,我有以下错误消息而试图建立项目:
I am New to Android and phonegap development, recently i follow the instruction from various internet blog and trying to setup phonegap with android studio. After i successfully install and follow all the settings (Env variable staff...etc), and after i import phonegap project into android studio, i have the following error message while trying to build the project:
java: package org.apache.cordova does not exist
java: cannot find symbol
symbol: class DroidGap
java: cannot find symbol
symbol: variable super
location: class com.demo.androidstudio.ProjectTemplate
java: cannot find symbol
symbol: variable super
location: class com.demo.androidstudio.ProjectTemplate
java: method does not override or implement a method from a supertype
我应该做下一个呢?
What should i do next?
请帮忙。谢谢!
推荐答案
我的答案是类似的另一个但有一些本质上的区别:
My answer is similar to the other one but with some essential differences:
1. Download the latest version of android from https://www.apache.org/dist/cordova/platforms/
2. Navigate to the Android package's / framework directory
3. run 'android update project -p .'
4. then run `ant jar`
5. Copy cordova-*.jar file into your /libs/ folder
这篇关于" java的:包org.apache.cordova不存在" Android Studio中编译的PhoneGap项目模板时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!