在Android studio上写的软件在模拟器上可以运行,在手机上不能运行.

02/2010:05:28:Launchingapp$adbshellamstart-n"com.example.a29956.newd/com.example.a299... 02/20 10:05:28: Launching app
$ adb shell am start -n "com.example.a29956.newd/com.example.a29956.newd.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 5266 on device Nexus_5X_API_22 [emulator-5554]
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
E/libprocessgroup: failed to make and chown /acct/uid_10053: Read-only file system
W/Zygote: createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?
I/art: Not late-enabling -Xcheck:jni (already on)
I/InstantRun: starting instant run server: is main process
D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
D/Atlas: Validating map...
I/OpenGLRenderer: Initialized EGL, version 1.4
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/EGL_emulation: eglCreateContext: 0xa4010700: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xa4010700: ver 2 0
D/OpenGLRenderer: Enabling debug mode 0
D/EGL_emulation: eglMakeCurrent: 0xa4010700: ver 2 0
E/SQLiteLog: (1) no such table: word_z
E/AndroidRuntime: FATAL EXCEPTION: Thread-207
Process: com.example.a29956.newd, PID: 5266
android.database.sqlite.SQLiteException: no such table: word_z (code 1): , while compiling: SELECT * FROM word_z
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:889)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:500)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1316)
at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1163)
at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1034)
at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1240)
at com.example.a29956.newd.Shuzu$1.run(Shuzu.java:55)
at java.lang.Thread.run(Thread.java:818)
展开
 我来答
iANT0
2018-02-20 · TA获得超过203个赞
知道答主
回答量:33
采纳率:0%
帮助的人:4.2万
展开全部
检查你的DataBaseHelper类中的创建表格语句是否正确。问题出在android.database.sqlite.SQLiteException: no such table: word_z (code 1): , while compiling: SELECT * FROM word_z,意思是SQL没有在数据库里找到word_z这张表
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式