2013-10-09 17 views
3

我刚刚开始使用新的Phonegap应用程序和一些测试。 我想使用MapKit -Plugin https://github.com/imhotep/MapKit如何在CLI生成的phonegap应用程序中使用plugman插件

我用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 

我在做什么错?

谢谢!

回答

17

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

您的iOS项目也是如此。

+0

谢谢!这对我有效! – Sebastian

相关问题