3

我刚开始使用一个新的 Phonegap 应用程序和一些测试。我想使用MapKit -Plugin https://github.com/imhotep/MapKit

我用phonegap create Test.

下一步:

cd Test
phonegap build ios
phonegap build android
plugman --platform android \
    --project . \
    --plugin https://github.com/imhotep/MapKit.git \
    --variable API_KEY="xxxxx"

Error: ENOENT, no such file or directory '/Users/User/Entwicklung/2.0/prototypes/Test/AndroidManifest.xml'
at Object.fs.openSync (fs.js:427:18)
at Object.fs.openSync (/usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/node_modules/glob/node_modules/graceful-fs/graceful-fs.js:68:26)
at Object.fs.readFileSync (fs.js:284:15)
at Object.module.exports.parseElementtreeSync (/usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/src/util/xml-helpers.js:144:27)
at androidPackageName (/usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/src/platforms/android.js:131:28)
at handlePlugin (/usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/src/platforms/android.js:41:24)
at Object.module.exports.install (/usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/src/platforms/android.js:30:9)
at runInstall (/usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/src/install.js:110:13)
at /usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/src/install.js:28:17
at /usr/local/Cellar/node/0.10.3/lib/node_modules/plugman/src/util/plugins.js:105:31

我究竟做错了什么?

谢谢!

4

1 回答 1

17

您必须使用“(your_project)/platforms/android/”中的 android 项目路径作为“--project”参数,而不是 phonegap 项目的根路径。:)

您的 iOS 项目也是如此。

于 2013-10-09T15:25:43.740 回答