jialongsu / react-native-s-baidumap Goto Github PK
View Code? Open in Web Editor NEW百度地图 React Native ,同时支持ios和android
License: MIT License
百度地图 React Native ,同时支持ios和android
License: MIT License
<!--百度地图--> <meta-data android:name="com.baidu.lbsapi.API_KEY" android:value="百度地图申请的key值" > </meta-data>
android清单文件添加配置后,应用启动闪退报错:
Process: com.lgtrade.glw.prod, PID: 17497 java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout; at com.facebook.react.shell.MainReactPackage.createViewManagers(MainReactPackage.java:339) at com.facebook.react.ReactInstanceManager.getOrCreateViewManagers(ReactInstanceManager.java:775) at com.facebook.react.CoreModulesPackage.createUIManager(CoreModulesPackage.java:187) at com.facebook.react.CoreModulesPackage.getModule(CoreModulesPackage.java:155) at com.facebook.react.TurboReactPackage$ModuleHolderProvider.get(TurboReactPackage.java:123) at com.facebook.react.TurboReactPackage$ModuleHolderProvider.get(TurboReactPackage.java:111) at com.facebook.react.bridge.ModuleHolder.create(ModuleHolder.java:189) at com.facebook.react.bridge.ModuleHolder.getModule(ModuleHolder.java:154) at com.facebook.react.bridge.NativeModuleRegistry.getModule(NativeModuleRegistry.java:148) at com.facebook.react.bridge.CatalystInstanceImpl.getNativeModule(CatalystInstanceImpl.java:429) at com.facebook.react.uimanager.UIManagerHelper.getUIManager(UIManagerHelper.java:38) at com.facebook.react.ReactInstanceManager.attachRootViewToInstance(ReactInstanceManager.java:1049) at com.facebook.react.ReactInstanceManager.setupReactContext(ReactInstanceManager.java:1008) at com.facebook.react.ReactInstanceManager.access$1300(ReactInstanceManager.java:124) at com.facebook.react.ReactInstanceManager$5$2.run(ReactInstanceManager.java:969) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29) at android.os.Looper.loop(Looper.java:214) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232) at java.lang.Thread.run(Thread.java:764) Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.swiperefreshlayout.widget.SwipeRefreshLayout" on path: DexPathList[[zip file "/data/app/com.lgtrade.glw.prod-46AlgfCjrr5yAPhc3IH2Vg==/base.apk"],nativeLibraryDirectories=[/data/app/com.lgtrade.glw.prod-46AlgfCjrr5yAPhc3IH2Vg==/lib/arm64, /data/app/com.lgtrade.glw.prod-46AlgfCjrr5yAPhc3IH2Vg==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at com.facebook.react.shell.MainReactPackage.createViewManagers(MainReactPackage.java:339) at com.facebook.react.ReactInstanceManager.getOrCreateViewManagers(ReactInstanceManager.java:775) at com.facebook.react.CoreModulesPackage.createUIManager(CoreModulesPackage.java:187) at com.facebook.react.CoreModulesPackage.getModule(CoreModulesPackage.java:155) at com.facebook.react.TurboReactPackage$ModuleHolderProvider.get(TurboReactPackage.java:123) at com.facebook.react.TurboReactPackage$ModuleHolderProvider.get(TurboReactPackage.java:111) at com.facebook.react.bridge.ModuleHolder.create(ModuleHolder.java:189) at com.facebook.react.bridge.ModuleHolder.getModule(ModuleHolder.java:154) at com.facebook.react.bridge.NativeModuleRegistry.getModule(NativeModuleRegistry.java:148) at com.facebook.react.bridge.CatalystInstanceImpl.getNativeModule(CatalystInstanceImpl.java:429) at com.facebook.react.uimanager.UIManagerHelper.getUIManager(UIManagerHelper.java:38) at com.facebook.react.ReactInstanceManager.attachRootViewToInstance(ReactInstanceManager.java:1049) at com.facebook.react.ReactInstanceManager.setupReactContext(ReactInstanceManager.java:1008) at com.facebook.react.ReactInstanceManager.access$1300(ReactInstanceManager.java:124) at com.facebook.react.ReactInstanceManager$5$2.run(ReactInstanceManager.java:969) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29) at android.os.Looper.loop(Looper.java:214) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232) at java.lang.Thread.run(Thread.java:764)
安卓配置文档书在0.60.0+版本只需要添加这一项配置(我的版本是0.60.6), 是否还需要额外配置, 如权限等?
Marker的自定义 Infowindow 如何实现?
demo中运行没有问题· 就是集成到项目中后报这个错误
如标题所示, onMarkerClick方法事件回调没有反应,我该怎么办?
debug一切正常,会弹出是否获取位置的框,release就不弹出,设置的权限里面也没有位置权限
react-native run-android 在真机运行Marker中title文字在点位较为向上的位置, 而打包成APK后, title文字在点位图标中间靠下位置, 不知道原因或更换不同尺寸或分辨率手机后能否同样适配
Illegal callback invocation from native module. This callback type only permits a single invocation from native code.
原因是这两个函数原生通讯使用的是Promises回调,应该换成RCTEventEmitter发送通知的方式。
MapView 属性locationEnabled显示当前定位位置无效, 设置了, 但是地图上没有显示当前位置图标
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.