gpt4 book ai didi

java - Phonegap 电子邮件撰写器

转载 作者:太空宇宙 更新时间:2023-11-04 14:41:37 26 4
gpt4 key购买 nike

我正在尝试将现有的 iOS 应用程序移植到 Android,尚未进行任何调整,只是一次快速而简单的尝试。

因此,如果我想在选项卡 4 上启动它,我现在使用“phonegap build android”并将 android 文件导入到 eclipse,我收到以下错误日志:

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 上工作起来就像魅力一样。

干杯马文

最佳答案

插件工作得很好。只需添加de.appplant.cordova.emailcomposer.EmailComposer
适用于 Android 设备的 config.xml 功能。在 iOS 上运行良好。

关于java - Phonegap 电子邮件撰写器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24866257/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com