Tag Archives: Mobile terminal over separation

Errorjava.lang.NullPointerException(no error message)

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 : 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

Error resource Android datalogcornerradius not found

Error: resource Android: attr/dialogcornerradius not found

1. Problem description

Running the Android studio program generates an error error error: resource Android: attr/dialogcornerradius not found

2. Analyze the causes

Compilesdkversion, buildtoolsversion and targetsdkversion do not match

3. Solutions

Set compilesdkversion and buildtoolsversion to high version and targetsdkversion to low version

4. Specific operation steps

Step 1: check the version numbers of compile SDK version, build tools version and targetsdkversion

Step 2: in the project structure interface, select modules and modify the version numbers of compile SDK version and build tools version

Requirement: compile SDK version and build tools version should be higher than targetsdkversion

Step3: Step 2 after modifying the version number, Android studio will automatically update. After the update, run the program again to solve the error problem.