cordova-plugin-baidumaplocation icon indicating copy to clipboard operation
cordova-plugin-baidumaplocation copied to clipboard

安卓调用getCurrentPosition无响应

Open Dongsipan opened this issue 5 years ago • 7 comments

V/Capacitor/Plugin: To native (Cordova plugin): callbackId: BaiduMapLocation874731680, service: BaiduMapLocation, action: getCurrentPosition, actionArgs: [null] W/System.err: java.lang.ClassNotFoundException: com.aruistar.cordova.baidumap.BaiduMapLocation W/System.err: at java.lang.Class.classForName(Native Method) W/System.err: at java.lang.Class.forName(Class.java:454) W/System.err: at java.lang.Class.forName(Class.java:379) W/System.err: at org.apache.cordova.PluginManager.instantiatePlugin(PluginManager.java:489) W/System.err: at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:169) W/System.err: at org.apache.cordova.PluginManager.exec(PluginManager.java:122) W/System.err: at com.getcapacitor.MessageHandler.callCordovaPluginMethod(MessageHandler.java:70) W/System.err: at com.getcapacitor.MessageHandler.postMessage(MessageHandler.java:46) W/System.err: at android.os.MessageQueue.nativePollOnce(Native Method) W/System.err: at android.os.MessageQueue.next(MessageQueue.java:336) W/System.err: at android.os.Looper.loop(Looper.java:178) W/System.err: at android.os.HandlerThread.run(HandlerThread.java:67) W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.aruistar.cordova.baidumap.BaiduMapLocation" on path: DexPathList[[zip file "/data/app/io.ionic.starter-CwpssdsMTslrxMZzEz7ZcA==/base.apk"],nativeLibraryDirectories=[/data/app/io.ionic.starter-CwpssdsMTslrxMZzEz7ZcA==/lib/arm64, /system/lib64, /system/product/lib64]] W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:230) W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:379) W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:312) W/System.err: ... 12 more I/System.out: Error adding plugin com.aruistar.cordova.baidumap.BaiduMapLocation.

Dongsipan avatar Nov 16 '19 11:11 Dongsipan

    <source-file src="src/android/BaiduMapLocation.java" target-dir="src/com/aruistar/cordova/baidumap"/>

chary2060 avatar Nov 20 '19 07:11 chary2060

请问这个解决了吗? android7.1版本

lylovexm avatar Nov 22 '19 11:11 lylovexm

请问这个解决了吗? android7.1版本

plugin.xml  中的BaiduMapLocation路径写错了,target-dir去掉app/

chary2060 avatar Nov 25 '19 02:11 chary2060

我也是在安卓上面没有回调,去掉app/y也不行

LningCode avatar Dec 05 '19 07:12 LningCode

我也是在安卓上面没有回调,去掉app/y也不行

那我就不知道了,platform >android  自行调试吧。。。

chary2060 avatar Dec 05 '19 09:12 chary2060

兄弟我的ios和安卓都没有反应,一会有出现什么code no net,还后面就没有了,能加个微信或者qq请教一下不

------------------ 原始邮件 ------------------ 发件人: "chen.zhipeng"<[email protected]>; 发送时间: 2019年12月5日(星期四) 下午5:33 收件人: "aruis/cordova-plugin-baidumaplocation"<[email protected]>; 抄送: "林福宁"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [aruis/cordova-plugin-baidumaplocation] 安卓调用getCurrentPosition无响应 (#83)

我也是在安卓上面没有回调,去掉app/y也不行

那我就不知道了,platform >android  自行调试吧。。。

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

LningCode avatar Dec 05 '19 09:12 LningCode

兄弟我的ios和安卓都没有反应,一会有出现什么code no net,还后面就没有了,能加个微信或者qq请教一下不 ------------------ 原始邮件 ------------------ 发件人: "chen.zhipeng"<[email protected]>; 发送时间: 2019年12月5日(星期四) 下午5:33 收件人: "aruis/cordova-plugin-baidumaplocation"<[email protected]>; 抄送: "林福宁"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [aruis/cordova-plugin-baidumaplocation] 安卓调用getCurrentPosition无响应 (#83) 我也是在安卓上面没有回调,去掉app/y也不行 那我就不知道了,platform >android  自行调试吧。。。 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

qq1319915051

chary2060 avatar Dec 06 '19 08:12 chary2060