Comments (9)
问题解决了,用Android Studio打开后,看了日志记录,开始是需要设置ACCESS_NETWORK_STATE权限,然后模拟器运行提示 APP Scode码校验失败,加了权限,并用release版本运行(我只配了release版本的key),正常显示了地图
from react-native-baidu-map.
在RN里面用什么方式可以打印当前KEY是否正确
from react-native-baidu-map.
要用自己的,demo只是一个示例。如何查看keystore的sha1,网上有很多教程,百度地图API文档上也有,你可以去看一下
from react-native-baidu-map.
相同的sha1、相同的包名生成的AK,在android代码里面运行就可以、在reactNative里就不行、只显示网格。郁闷啊
from react-native-baidu-map.
默认情况下,debug keystore跟release keystore是不同的,你应该是没配置好,可以参考一下demo,里面的keystore和api key都是配置好的
from react-native-baidu-map.
显示网格,是ak没配置对么?
from react-native-baidu-map.
不清楚、用android写的就可以
from react-native-baidu-map.
我在Android studio里面运行也只是显示网格,试验了demo,也没运行起来,还需要去研究调用原理,😓,你申请的百度ak是Android类型的key吗? @renbingGitHub
from react-native-baidu-map.
我也用Android Studio试试看下
from react-native-baidu-map.
Related Issues (20)
- ios 获取定位信息报错
- ios 获取定位报错
- iOS地图无法拖动和缩放
- :react-native-baidu-map:compileDebugAidl
- 新版react-native没有DeviceEventEmitter.once方法 HOT 2
- Polygon Draw not show HOT 1
- APP从后台进入到前台时有时会鉴权失败是什么原因?
- com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
- 隐私合规问题被打回 HOT 3
- 此项目已死 HOT 1
- 能否告知如何禁止app启动就获取手机的android_id?
- andorid百度地图sdk没有同意隐私协议提前初始化了
- http://repo.lovebing.net/ 上了WAF后,Android项目表现不正常
- 我在MapView中编写Overlay之后,应用直接闪退,没有任何提示信息,我的RN版本是0.66.1 HOT 2
- Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
- marker中的icon可以左右上下移动位置吗?现在的点跟连线不在一个位置上
- android机型 HOT 1
- requireNativeComponent: "BaiduMapOverlayInfoWindow" was not found in the UIManager. HOT 1
- A problem occurred configuring project ':react-native-baidu-map'. HOT 1
- 这个百度地图库也没人更新维护了吗? 还有什么可用的百度地图RN的库吗? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-baidu-map.