|
发表帖子
API/SDK版本号: |
3.4.0 |
产品: |
定位 |
手机型号: |
华为mate9 |
使用接口: |
|
华为mate9 安卓7.0 同在6.0的机器上也出现这个问题 好像是没有读写SD卡权限,AndroidManifest 中 权限都给了,现在能定位成功 ,
SQLiteDatabase: Failed to open database '/storage/emulated/0/amap/openamaplocationsdk/alsn.db'.
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (Sqlite code 14): Could not open database, (OS error - 13ermission denied)
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:219)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:203)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:493)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:194)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:183)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:880)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:864)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:767)
at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:782)
at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:775)
at com.amap.api.col.ia$a.openOrCreateDatabase(DB.java:120)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:235)
at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:199)
at com.amap.api.col.hv.a(DBOperation.java:507)
at com.amap.api.col.hv.a(DBOperation.java:282)
at com.amap.api.col.hv.b(DBOperation.java:342)
at com.amap.api.col.hv.a(DBOperation.java:175)
at com.amap.api.col.h.d(LastLocationManager.java:272)
at com.amap.api.col.d$a.handleMessage(AMapLocationManager.java:1663)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:156)
at android.os.HandlerThread.run(HandlerThread.java:61)
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (Sqlite code 14): Could not open database, (OS error - 13ermission denied)
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:219)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:203)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:493)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:194)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:183)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:880)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:864)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:767)
at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:782)
at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:775)
at com.amap.api.col.ia$a.openOrCreateDatabase(DB.java:120)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:235)
at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:199)
at com.amap.api.col.hv.a(DBOperation.java:507)
at com.amap.api.col.hv.a(DBOperation.java:282)
at com.amap.api.col.hv.b(DBOperation.java:342)
at com.amap.api.col.hv.a(DBOperation.java:175)
at com.amap.api.col.h.d(LastLocationManager.java:272)
at com.amap.api.col.d$a.handleMessage(AMapLocationManager.java:1663)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:156)
at android.os.HandlerThread.run(HandlerThread.java:61)
|
|