About java.lang.IllegalArgumentException Error in simplecursoradapter ‘column’_ ID ‘does not exist problem:
Simplecursoradapter inherits from the cursoradapter. This class has an implicit rule that there must be a_ The ID field.
The way to solve this problem is:
1. Double name the database table, and name the self growing primary key as_ id
2. When using database query language, use db.rawQuery (select * from Biao, null) —- there are_ ID field
3. Use db.rawQuery (select id as _ ID, name from Biao)_ ID.
That is to say, you must find it when querying_ ID column.
Read More:
- java.lang.IllegalArgumentException : could not get next sequenced ID for sequence name: Visitor solution
- 1072 – Key column ‘xxx_id’ doesn’t exist in table
- java.lang.IllegalArgumentException: Receiver not registered:
- java.lang.IllegalArgumentException : URI scheme is not “file” error resolution
- java.lang.IllegalArgumentException : URI is not absolute error
- In the SQL query statement, add the column that does not exist in the table and set the fixed value of the column
- java.lang.IllegalArgumentException : urlcoder exception resolution
- java.lang.IllegalArgumentException: Address 127.0.0.1:5672:5672 seems to contain an unquoted IPv6
- Error java.lang.IllegalArgumentException: Validation failed for query for method public abstract
- Springboot startup error: java.lang.IllegalArgumentException : Property ‘sqlSessionFactory’ or ‘sqlSessionTempla
- java.lang.IllegalArgumentException: error at ::0 can‘t find referenced pointcut anyMethod
- java.lang.IllegalArgumentException: Index for header ‘XXX‘ is 1 but CSVRecord only has 1 value
- There is no getter for property named ‘id‘ in ‘class java.lang.Integer‘
- java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView
- JMeter running error response code: non HTTP response code: java.lang.illegalargumentexception find and solve
- Error in idea compilation: java.lang.OutOfMemoryError Java heap space and java.lang.StackOverflowError
- Using Navicat + premium + 11.1 to connect to PG12 version, error: column c.relhasoids does not exist
- java.lang.NoSuchMethodError: org.json.JSONObject.put(Java/lang/String; Java/util/Collection;) “209151;”
- Cause: java.sql.BatchUpdateException: Unknown column ‘xxx‘ in ‘field list‘
- java.lang.IllegalStateException: Could not execute method for android:onClick