Home > Mobile >  For help
For help

Time:11-03

Have a simple login registration screen when debugging has been flash back, who can help me to debug the great god, thank you very much

CodePudding user response:

The reason for the error can be put out, or baidu think about solve itself

CodePudding user response:

Logcat know where? What if I don't know, baidu logcat,,, and then the error log screenshots send up

CodePudding user response:

refer to the second floor Yi 曱 sauce response:
logcat know where? What if I don't know, baidu logcat, screenshots, and then the error log coming

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.dell.myapplication, PID: 3343 android.database.sqlite.SQLiteException: no such column: jsxanduser_pwd (code 1): , while compiling: SELECT * FROM users WHERE user_name=jsxanduser_pwd=123456 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. (SQLiteProgram. Java: 58) at android. The database, sqlite, SQLiteQuery. & lt; 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:1202) at com.example.dell.myapplication.UserdataManager.findUserByNameAndPwd(UserdataManager.java:141) at com.example.dell.myapplication.LoginActivity.login(LoginActivity.java:72) at com.example.dell.myapplication.LoginActivity$1.onClick(LoginActivity.java:62) at android.view.View.performClick(View.java:4780) at android.view.View$PerformClick.run(View.java:19866) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5293) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

CodePudding user response:

refer to the second floor Yi 曱 sauce response:
logcat know where? What if I don't know, baidu logcat, screenshots, and then the error log coming

Can't seem to send screenshots ah, can't send pictures, to debug a problem of the database, and is empty FileExplorer

CodePudding user response:

Android. Database. Sqlite. SQLiteException: no to the column: jsxanduser_pwd: (code 1), while the compiling: SELECT * FROM the users WHERE user_name=jsxanduser_pwd=123456
SQL statement joining together you have any question

CodePudding user response:

Is the issue of SQL grammar?

CodePudding user response:

Keyword
No to the column:

CodePudding user response:

refer to 7th floor SemiraChen response:
keyword
No to the column:

Thought is the list of the columns, and then add new information, but in the registration screen input account and password after clicking register or suggest no to the column, the database can't normal storage

CodePudding user response:

Upstairs is not to say that, detailed SQL less space in the middle
  • Related