应用程序因错误而崩溃:
--------- beginning of crash
A Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 in tid 29943 (MapboxRenderThr), pid 28664 (com.example)
A Cmdline: com.example
A pid: 28664, tid: 29943, name: MapboxRenderThr >>> com.example <<<
A #00 pc 0000000000251d48 /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!libmapbox-maps.so (BuildId: 331a309c6d4e90a8)
A #01 pc 0000000000364828 /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!libmapbox-maps.so (BuildId: 331a309c6d4e90a8)
A #02 pc 0000000000362398 /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!libmapbox-maps.so (BuildId: 331a309c6d4e90a8)
A #03 pc 00000000002a5400 /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!libmapbox-maps.so (BuildId: 331a309c6d4e90a8)
A #04 pc 00000000002a11e0 /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!libmapbox-maps.so (BuildId: 331a309c6d4e90a8)
A #05 pc 0000000000262e7c /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!libmapbox-maps.so (BuildId: 331a309c6d4e90a8)
A #08 pc 0000000000455020 [anon:dalvik-classes19.dex extracted in memory from /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!classes19.dex] (com.mapbox.maps.NativeMapImpl.render+4)
A #10 pc 000000000057930a [anon:dalvik-classes19.dex extracted in memory from /data/app/~~UumzpthqKLE4948SYvPqdQ==/com.example-nDNjufK5e_F84LmN8PXw-Q==/base.apk!classes19.dex] (com.mapbox.maps.renderer.MapboxRenderer.render+10)
---------------------------- PROCESS ENDED (28664) for package com.example ----------------------------
首次从 Android Studio 运行应用程序时,该应用程序通常会崩溃。想象一下,应用程序已经安装在手机上,在 Android Studio 中我选择“存储前清除应用程序数据”然后启动。应用程序崩溃,但请注意,这不是每次都能重现。
我正在使用图书馆:
//mapbox
implementation 'com.mapbox.navigation:android:2.11.0'
implementation "com.mapbox.search:mapbox-search-android:1.0.0-rc.2"
我过去也尝试过其他版本的库,经常出现同样的错误。
谢谢,非常感谢帮助和任何指导!