Phonegap Email Composer

时间:2014-07-21 13:25:51

标签: java android cordova cordova-3 cordova-plugins

我正在尝试将我现有的iOS应用程序移植到android,没有做过任何调整,只是一个快速的&污垢试试。

所以我使用'phonegap build android'并将android文件导入eclipse现在如果我想在我的选项卡上启动它4我得到以下错误日志:

07-12 14:06:16.844: E/AndroidRuntime(26767): FATAL EXCEPTION: main
07-12 14:06:16.844: E/AndroidRuntime(26767): Process: de.mo.mepantrag, PID: 26767
07-12 14:06:16.844: E/AndroidRuntime(26767): java.lang.RuntimeException: Unable to get provider de.appplant.cordova.plugin.emailcomposer.AttachmentProvider: java.lang.ClassNotFoundException: Didn't find class "de.appplant.cordova.plugin.emailcomposer.AttachmentProvider" on path: DexPathList[[zip file "/data/app/de.mo.mepantrag-3.apk"],nativeLibraryDirectories=[/data/app-lib/de.mo.mepantrag-3, /vendor/lib, /system/lib]]
07-12 14:06:16.844: E/AndroidRuntime(26767):    at android.app.ActivityThread.installProvider(ActivityThread.java:5118)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at android.app.ActivityThread.installContentProviders(ActivityThread.java:4710)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4593)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at android.app.ActivityThread.access$1600(ActivityThread.java:169)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1337)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at android.os.Handler.dispatchMessage(Handler.java:102)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at android.os.Looper.loop(Looper.java:136)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at android.app.ActivityThread.main(ActivityThread.java:5479)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at java.lang.reflect.Method.invokeNative(Native Method)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at java.lang.reflect.Method.invoke(Method.java:515)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at dalvik.system.NativeStart.main(Native Method)
07-12 14:06:16.844: E/AndroidRuntime(26767): Caused by: java.lang.ClassNotFoundException: Didn't find class "de.appplant.cordova.plugin.emailcomposer.AttachmentProvider" on path: DexPathList[[zip file "/data/app/de.mo.mepantrag-3.apk"],nativeLibraryDirectories=[/data/app-lib/de.mo.mepantrag-3, /vendor/lib, /system/lib]]
07-12 14:06:16.844: E/AndroidRuntime(26767):    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:67)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
07-12 14:06:16.844: E/AndroidRuntime(26767):    at android.app.ActivityThread.installProvider(ActivityThread.java:5103)
07-12 14:06:16.844: E/AndroidRuntime(26767):    ... 12 more

我知道它找不到AttachmentProvider类,但为什么?我也找不到我的platform / android目录中的文件。那它在哪里?或者我可能无法安装插件..但在iOS上的功能就像魅力一样。

干杯马文

1 个答案:

答案 0 :(得分:0)

插件工作正常。只需添加 的 de.appplant.cordova.emailcomposer.EmailComposer
功能到您的config.xml为Android设备。适用于iOS。