Coder Social home page Coder Social logo

Comments (9)

tide2046 avatar tide2046 commented on July 20, 2024 1

真机调试也一样。第一次定位是没有问题得,当再次定位的时候就null了。altitude:5e-324,不知道有没有人解决问题了。请@lovebing,作者赐教。非常感谢!

from react-native-baidu-map.

void117 avatar void117 commented on July 20, 2024

+1

from react-native-baidu-map.

LiuC520 avatar LiuC520 commented on July 20, 2024

+1,android端是空的,ios是好的

from react-native-baidu-map.

Xing-He avatar Xing-He commented on July 20, 2024
  • rn : 0.41.2
  • map : 0.5.0

安卓模拟器获取当前位置回调函数中显示获取数据null(以前是可以获取到的,真机测试了下也可以),如下,还请作者可以指点 @lovebing ,有解决了的也请@我下...谢谢

{ buildingName: null,
street: null,
district: null,
city: null,
latitude: 5e-324,
altitude: 5e-324,
buildingId: null,
radius: 0,
province: null,
direction: -1,
address: null,
countryCode: null,
streetNumber: null,
longitude: 5e-324,
country: null,
cityCode: null }

控制台有输出这些信息,小白不太懂...

warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.baidu.mapapi.search.route.n) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.baidu.mapapi.search.share.a) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.baidu.mapapi.search.sug.a) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.baidu.mapapi.search.sug.b) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.baidu.platform.comapi.search.e) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.

from react-native-baidu-map.

yourenA avatar yourenA commented on July 20, 2024

@shanqiu861002 @void117 @Xing-He @LiuC520 请问一下这个问题决解了吗?我在android下也遇到这个问题?第一次定位没有问题,但是后面的定位就不行了

from react-native-baidu-map.

Xing-He avatar Xing-He commented on July 20, 2024

@yourenA 不要纠结了,使用真机测试吧

from react-native-baidu-map.

PatWu16 avatar PatWu16 commented on July 20, 2024

@yourenA 请问有找到原因吗?我目前也遇到了这样的问题,第一次是准确的定位信息,后面返回的全是null

from react-native-baidu-map.

PatWu16 avatar PatWu16 commented on July 20, 2024

@tide2046 我是创建百度地图应用时SHA1错误导致的,模块没问题,你检查一下配置吧,希望对你有启发

from react-native-baidu-map.

sizhuxuan avatar sizhuxuan commented on July 20, 2024

@tide2046 我是创建百度地图应用时SHA1错误导致的,模块没问题,你检查一下配置吧,希望对你有启发

搞定了吗,老哥,我现在iOS没问题,android和你一样为null

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.