Solve the error: error: java.lang.nullpointerexception (no error message)
1、 Analyze the cause
Android studio often has dependencies or configuring related errors, which are generally caused by the conflict between Android gradle plugin version and gradle version and project files.
2、 Solution
Change the appropriate Android gradle plugin version and gradle Version (which version is appropriate may need to be tried)
3、 Specific operation
1. Through file – & gt; Project structure… Enter the project structure interface
2. In the project structure interface, select project, click the lower triangle, and select the program version to be installed
Then click OK, and Android studio will automatically make version changes to Android gradle plugin version and gradle version
Note that u>: Android gradle plugin version matches gradle version. Refer to the link: https://developer.android.com/studio/releases/gradle-plugin?hl=zh -cn
3. Recompile the program and solve the error
Read More:
- Android studio — java.lang.nullpointerexception(no error message)
- A problem occurred configuring project ‘:x x x‘. > java.lang.NullPointerException (no error message)
- Error reporting: java.lang.nullpointerexception solution
- About the error querying database. Cause: java.lang.nullpointerexception reported in mybatis
- Method threw ‘java.lang.NullPointerException‘ exception. Cannot evaluate com.sun.proxy.xxx
- Idea community version starts Tomcat to report error running ‘XXXXXX’: java.lang.NullPointerException
- Eclipse:An error has occurred. See error log for more details. java.lang.NullPointerException
- Pychar console error: xmlrpc.client.Fault : Fault 0: ‘ java.lang.NullPointerException
- The @ Autowired annotation in springboot is invalid in ordinary classes. How to solve and use the null pointer exception java.lang.nullpointerexception
- Docker load loading mirror message JSON no such file or directory error
- build.gradle Warming: cannot be applied to ‘(groovy.lang.Closure)’/'(java.lang.String)’
- There is no getter for property named ‘id‘ in ‘class java.lang.Integer‘
- Error in idea compilation: java.lang.OutOfMemoryError Java heap space and java.lang.StackOverflowError
- Mybatis error,There is no getter for property named ‘xx’ in ‘class java.lang.String The solution
- java.lang.NoSuchMethodError: org.json.JSONObject.put(Java/lang/String; Java/util/Collection;) “209151;”
- The springboot test class reported an error NullPointerException
- How to deal with NullPointerException error in row.getlong in spark – sparksql
- Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK
- Android error installation failed with message invalid file
- Installation failed with message Invalid File