Cordova phongap build无法找到符号webview

时间:2017-12-13 11:01:00

标签: android cordova intellij-idea npm phonegap

我在cordova中有例外 每当我构建调试或发布以生成apk

它在phone gap getting started

的浏览器和手机间隙应用程序上运行

我尝试了很多降级和升级为cordova 加 我尝试了很多SDK并构建了工具版本。 加 我尝试安装un install不同版本的cordova和npm

当我尝试一些东西时,我遇到了很多不同的错误 Error 1 Error 2

我的项目有点陈旧,它创建于4年前。但我最后一次创造 apk几个月前,我知道这个问题是因为我点击intellij更新为android存储库,但不记得它是什么

这是Exception,我没有完整的堆栈,因为我已经 解决了它并在这里发布答案。 (我不想再破坏它了)

当我运行时

cordova build android --debug

我找不到 .plugin字母p

的符号
new CordovaResourceApi(webView.getContext(), webView.pluginManager)

我在这里发布答案,因为我解决了两次,但我花了 两天调试!再次解决。

P.S

以下是我在stackoverflow上尝试过的参考资料 我在输出控制台中得到的东西

相信我,这将为您节省大量的Google信息。

Achilles 4.2.0 compilation error - cannot find symbol symbol: class Table location: package info.archinnov.achilles.annotations

How do I set up IntelliJ IDEA for Android applications?

Phonegap / Cordova - Build Apk

Error cannot find symbol org.apache.cordova.CordovaHttpAuthHandler using InAppBrowser Cordova 5.3.3

Clear cache in Cordova app

Cordova Web view cache clear in android

How to force refresh the cached source files upon Ionic build/run?

Clear PhoneGap Cache

Apache Cordova - uninstall globally

Update cordova plugins in one command

How can I delete all unversioned/ignored files/folders in my working copy?

Cordova Error: Your ios platform does not have Api.js

Cordova Unable to load platformapi

cordova phonegap - How to use android API level 21

Cordova build for android level api 20

Error:(18, 56) error: cannot find symbol variable webView

Error cannot find symbol org.apache.cordova.CordovaHttpAuthHandler using InAppBrowser Cordova 5.3.3

Cordova Android project doesn't compile

Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable

How to check the Android developer tools version from the command line?

How to downgrade my SDK Version?

Cordova App - build tool error - Gradle

How to install Android SDK Build Tools on the command line?

Plugin doesn't support this project's cordova-android version. cordova-android: 4.1.1, failed version requirement: >=5.0.0-dev

Can't add crosswalk with ionic cli 1.3.2

1 个答案:

答案 0 :(得分:1)

在我的情况下,我有以下内容:,我的安卓管理器看起来不像(仅供参考,我不得不降低成绩以适应很久以前创建的传统手机缺口!)

C:\ work \ sajilni_mobile \ android> cordova --version 4.0.0

C:\ work \ sajilni_mobile \ android> npm --version 3.10.10

C:\ work \ sajilni_mobile \ android> cordova平台列表 已安装的平台: android 3.6.4 ,浏览器4.1.0 可用平台:amazon-fireos,blackberry10,firefoxos,windows,windows8,wp8。

<强> ===&GT;&GT;&GT;这是我的插件正在使用它。

cordova plugin ls
com.phonegap.plugins.barcodescanner 2.0.1 "BarcodeScanner"
cordova-plugin-media 2.4.0 "Media"
org.apache.cordova.battery-status 0.2.12 "Battery"
org.apache.cordova.camera 0.3.5 "Camera"
org.apache.cordova.console 0.2.13 "Console"
org.apache.cordova.device 0.3.0 "Device"
org.apache.cordova.device-motion 0.2.11 "Device Motion"
org.apache.cordova.device-orientation 0.3.11 "Device Orientation"
org.apache.cordova.dialogs 0.3.0 "Notification"
org.apache.cordova.file 1.1.0 "File"
org.apache.cordova.geolocation 0.3.12 "Geolocation"
org.apache.cordova.media 0.2.16 "Media"
org.apache.cordova.media-capture 0.3.6 "Capture"
org.apache.cordova.network-information 0.2.15 "Network Information"
org.apache.cordova.splashscreen 1.0.0 "Splashscreen"
org.apache.cordova.vibration 0.3.13 "Vibration"

FYI cordova构建android - debug 有效,但 - 发布不起作用 在我的情况下,我的意思是))。

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here