2

所以我的问题是,当我从 monaca 导出我的项目并在 phonegap 中构建它时,我对插件没有任何问题。但是,当我在 Monaca 中构建时,phonegap 插件不起作用。我是 Monaca IDE 的新手,我的清单或其他方面是否可能缺少某些内容?

我的清单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:gap="http://phonegap.com/ns/1.0" android:hardwareAccelerated="true" android:versionCode="" android:versionName="1.0.0" android:windowSoftInputMode="adjustPan" package="com.solsticeservice.livingword">
    <gap:plugin name="org.apache.cordova.file" version="1.3.1"/>
    <gap:plugin name="org.apache.cordova.file-transfer" version="0.4.6"/>
    <gap:plugin name="org.apache.cordova.network-information" version="0.2.12"/>
    <gap:plugin name="de.appplant.cordova.plugin.email-composer" version="0.8.2"/>
    <gap:plugin name="nl.x-services.plugins.socialsharing" source="plugins.cordova.io"/>
    <gap:plugin name="org.apache.cordova.inappbrowser"/>
  <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true"/>
  <uses-permission android:name="android.permission.INTERNET"/>
  <application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="Living Word">
     <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="Living Word" android:name="MainActivity" android:theme="@android:style/Theme.Black.NoTitleBar">
      <intent-filter>
        <action android:name="android.intent.action.MAIN"/>
        <category android:name="android.intent.category.LAUNCHER"/>

      </intent-filter>
    </activity>
  </application>
  <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19"/>
</manifest>

我的 WWW/config.xml:

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:gap="http://phonegap.com/ns/1.0" id="com.solsticeservice.livingword" version="1.0.0">
  <name>Living Word</name>
  <description>Living Word Evangelical Free Church</description>
  <author/>
  <gap:plugin name="org.apache.cordova.file" version="1.3.1"/>
  <gap:plugin name="org.apache.cordova.file-transfer" version="0.4.6"/>
  <gap:plugin name="org.apache.cordova.network-information" version="0.2.12"/>
  <gap:plugin name="de.appplant.cordova.plugin.email-composer" version="0.8.2"/>
  <gap:plugin name="nl.x-services.plugins.socialsharing" source="plugins.cordova.io"/>
  <gap:plugin name="org.apache.cordova.inappbrowser"/>
  <content src="index.html"/>
  <preference name="loglevel" value="DEBUG"/>
  <preference name="AndroidLaunchMode" value="singleTop"/>
  <preference name="ErrorUrl" value=""/>
  <preference name="SplashScreen" value="screen"/>
  <preference name="monaca:DisableCookie" value="false"/>
  <feature name="App">
    <param name="android-package" value="org.apache.cordova.App"/>.............etc
4

1 回答 1

1

发现这只是 Monaca 的构建引擎,需要通过他们的 IDE 导入和安装,而不是 phonegap 方法。这导致支付开发人员计划。

于 2015-09-09T21:54:42.977 回答