0

私は次の問題の解決策を見つけました。同じ問題を抱えている人のために解決策を文書化したいと思います。私は次のエラーを持っているのPhoneGap Androidのビルドログで PhoneGap Androidビルドエラー:旧バージョンとプラグイン

Installing "cordova-plugin-file-opener2" at "2.0.7" for android 
Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to [email protected] or newer. 
-------------------------------------------------------------------------------- 
COMPILE OUTPUT 
-------------------------------------------------------------------------------- 
Buildfile: /project/build.xml 

-set-mode-check: 

-set-debug-files: 

-check-env: 
[checkenv] Android SDK Tools Revision 25.2.5 

-setup: 
    [echo] Project Name: appname 
    [gettype] Project Type: Application 

-set-debug-mode: 

-debug-obfuscation-check: 

-pre-build: 

-build-setup: 
[getbuildtools] Using latest Build Tools: 24.0.1 
    [echo] Resolving Build Target for appname... 
[gettarget] Project Target: Android 5.0.1 
[gettarget] API level:  21 
    [echo] ---------- 
    [echo] Creating output directories if needed... 
    [mkdir] Created dir: /project/bin 
    [mkdir] Created dir: /project/bin/res 
    [mkdir] Created dir: /project/bin/rsObj 
    [mkdir] Created dir: /project/bin/rsLibs 
    [mkdir] Created dir: /project/gen 
    [mkdir] Created dir: /project/bin/classes 
    [mkdir] Created dir: /project/bin/dexedLibs 
    [echo] ---------- 
    [echo] Resolving Dependencies for appname... 

BUILD FAILED 
/android-sdk/tools/ant/build.xml:573: ../../../../../../android-sdk/com.android.support:support-v4:+ resolve to a path with no project.properties file for project /project 

マイプロジェクトの​​3210:

... 
<preference name="phonegap-version" value="3.7.0" /> 
... 
<plugin name="cordova-plugin-file-opener2" source="npm" /> 
... 

答えて

0

今すぐエラーでインストールが試みることに注意します

Installing "cordova-plugin-file-opener2" at "2.0.7" for android 

は同じプラグインとして​​3210には設定されていないバージョンがあります最新のバージョンを使用しようとします。

<plugin name="cordova-plugin-file-opener2" spec="1.0.11" source="npm" /> 

はにそれを強制します:そう見えるようにプラグインにspec="1.0.11"を追加2.0.7をしようとしますが、このプラグインのlatest versionPhoneGap version 3.7.0で動作するでしょうmy previous answerで手順を実行します

File Opener Plugin 1.0.11とないのをインストールしています互換性のあるバージョンを使用してください。私は、これがビルドされていない古いプラグインに変換されると仮定します。

関連する問題