Comments (9)
真机调试也一样。第一次定位是没有问题得,当再次定位的时候就null了。altitude:5e-324,不知道有没有人解决问题了。请@lovebing,作者赐教。非常感谢!
from react-native-baidu-map.
+1
from react-native-baidu-map.
+1,android端是空的,ios是好的
from react-native-baidu-map.
- 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.
@shanqiu861002 @void117 @Xing-He @LiuC520 请问一下这个问题决解了吗?我在android下也遇到这个问题?第一次定位没有问题,但是后面的定位就不行了
from react-native-baidu-map.
@yourenA 不要纠结了,使用真机
测试吧
from react-native-baidu-map.
@yourenA 请问有找到原因吗?我目前也遇到了这样的问题,第一次是准确的定位信息,后面返回的全是null
from react-native-baidu-map.
@tide2046 我是创建百度地图应用时SHA1错误导致的,模块没问题,你检查一下配置吧,希望对你有启发
from react-native-baidu-map.
@tide2046 我是创建百度地图应用时SHA1错误导致的,模块没问题,你检查一下配置吧,希望对你有启发
搞定了吗,老哥,我现在iOS没问题,android和你一样为null
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.