任务':compileArmv7DebugJavaWithJavac'执行失败



我正在尝试构建应用程序(使用 ionic2 cordova(

ionic cordova build android 

所以发生错误:

D:ProjectsIPAIPA004001_MobileplatformsandroidsrcorgapachecordovafiletransferFileTransfer.java:851: error: cannot find symbol
                        FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
Execution failed for task ':compileArmv7DebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

我正在使用的这些插件:

"cordova-android": "^6.3.0",
    "cordova-android-support-gradle-release": "^1.2.0",
    "cordova-plugin-crosswalk-webview": "^2.4.0",
    "cordova-plugin-device": "^1.1.7",
    "cordova-plugin-file": "^6.0.1",
    "cordova-plugin-file-transfer": "^1.7.1",
    "cordova-plugin-ionic-webview": "^1.1.16",
    "cordova-plugin-splashscreen": "^4.1.0",
    "cordova-plugin-statusbar": "^2.4.1",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-plugin-x-socialsharing": "^5.2.1",
    "ionic-angular": "3.9.2",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionic2-rating": "^1.2.2",
    "ionicons": "3.0.0",
    "jquery": "^3.2.1",
    "rxjs": "5.5.2",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.18"

我尝试删除Cordova插件文件传输,然后构建应用程序,它成功了。 但是我需要这个插件,所以我该怎么办。他们似乎有不兼容的插件版本与 android-cordova 但我尝试了很多版本都没有成功。

in platform/android build.gradle 中,我更改了这个:

com.android.support:support-v4:24.1.1+ 

com.android.support:support-v4:24.1.1"

和在项目属性中这:

com.android.support:support-v4:24.1.1+ 

com.android.support:support-v4:24.1.1

相关内容

  • 没有找到相关文章

最新更新