Coder Social home page Coder Social logo

AK包名 about react-native-baidu-map HOT 9 CLOSED

lovebing avatar lovebing commented on July 20, 2024
AK包名

from react-native-baidu-map.

Comments (9)

walkertong avatar walkertong commented on July 20, 2024 1

问题解决了,用Android Studio打开后,看了日志记录,开始是需要设置ACCESS_NETWORK_STATE权限,然后模拟器运行提示 APP Scode码校验失败,加了权限,并用release版本运行(我只配了release版本的key),正常显示了地图

from react-native-baidu-map.

renhb3 avatar renhb3 commented on July 20, 2024

在RN里面用什么方式可以打印当前KEY是否正确

from react-native-baidu-map.

lovebing avatar lovebing commented on July 20, 2024

要用自己的,demo只是一个示例。如何查看keystore的sha1,网上有很多教程,百度地图API文档上也有,你可以去看一下

from react-native-baidu-map.

renhb3 avatar renhb3 commented on July 20, 2024

相同的sha1、相同的包名生成的AK,在android代码里面运行就可以、在reactNative里就不行、只显示网格。郁闷啊

from react-native-baidu-map.

lovebing avatar lovebing commented on July 20, 2024

默认情况下,debug keystore跟release keystore是不同的,你应该是没配置好,可以参考一下demo,里面的keystore和api key都是配置好的

from react-native-baidu-map.

walkertong avatar walkertong commented on July 20, 2024

显示网格,是ak没配置对么?

from react-native-baidu-map.

renhb3 avatar renhb3 commented on July 20, 2024

不清楚、用android写的就可以

from react-native-baidu-map.

walkertong avatar walkertong commented on July 20, 2024

我在Android studio里面运行也只是显示网格,试验了demo,也没运行起来,还需要去研究调用原理,😓,你申请的百度ak是Android类型的key吗? @renbingGitHub

from react-native-baidu-map.

renhb3 avatar renhb3 commented on July 20, 2024

我也用Android Studio试试看下

from react-native-baidu-map.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.