在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) 展开
$ 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) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询