Tag Archives: Android studio

Plugin Error: Plugin “Android Code Generator“ is incompatible (supported only in IntelliJ IDEA)

1. Question

Plugin Error: Plugin “Android Code Generator” is incompatible (supported only in IntelliJ IDEA).

2. Solution

C:/Users/Admin/AppData/Roaming/Google/AndroidStudio4.2/plugins

After deleting the file, restart the as to solve the problem.

3. Detailed steps

1. Enter the directory of Disk C and click the [user] folder

2. Find the directory of your [administrator] user name, that is, admin above

3. If you enter at this time, you may not find the appdata folder, so you need to open the hidden directory to see it (take win10 as an example here)

4. Follow the above file path to find the directory where the file is located

5. Delete the error folder. This is Android codegenerator plugin IntelliJ

6. Restart Android studio

errorCode:9015,errorMsg:cn.bmob.v3.util.BmobContentProvider.updateProvider(BmobContentProvider.java:

About the 9015 null pointer in the bmob backend cloud service platform, I checked it online. The reason is very simple, that is, it does not operate according to the official documents. Although the data can still be transmitted normally, it is still annoying to open the app with a prompt pop-up window.

Solution:

Directly open androidmanifest.xml and add two lines of code

        <provider
            android:name="cn.bmob.v3.util.BmobContentProvider"
            android:authorities="com.example.login.BmobContentProvider"/>

If I can help you, just give me a favor!!!   Thank you from the majority of hard pressed programmers!

Gradlew compilation error: mips64el Linux Android strip

Known configuration

ndk.dir=/home/.../Sdk/ndk-bundle  
sdk.dir=/home/.../Sdk  

Gradlew compilation error

Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForxxxxx'.
> A problem occurred starting process 'command '\
<sdk.dir>/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/mips64el-linux-android-strip''

View Android/SDK installation path

$ ll <sdk.dir>/ndk-bundle/toolchains/
drwxrwxrwx  3 lily lily 4096 aarch64-linux-android-4.9/
drwxrwxrwx  3 lily lily 4096 arm-linux-androideabi-4.9/
drwxrwxrwx  3 lily lily 4096 llvm/
lrwxrwxrwx  1 lily lily   25 mips64el-linux-android-4.9 -> aarch64-linux-android-4.9/
lrwxrwxrwx  1 lily lily   25 mipsel-linux-android-4.9 -> arm-linux-androideabi-4.9/
drwxrwxrwx  3 lily lily 4096 renderscript/
drwxrwxrwx  3 lily lily 4096 x86-4.9/
drwxrwxrwx  3 lily lily 4096 x86_64-4.9/

I downloaded an extra version of NDK R15, android-ndk-r15c

To change to

$ ll <sdk.dir>/ndk-bundle/toolchains/
drwxrwxrwx  3 lily lily 4096 aarch64-linux-android-4.9/
drwxrwxrwx  3 lily lily 4096 arm-linux-androideabi-4.9/
drwxrwxrwx  3 lily lily 4096 llvm/
lrwxrwxrwx  1 lily lily 84 mips64el-linux-android-4.9 -> <sdk.dir>/ndk/android-ndk-r15c/toolchains/mips64el-linux-android-4.9/
lrwxrwxrwx  1 lily lily 82 mipsel-linux-android-4.9 -> <sdk.dir>/ndk/android-ndk-r15c/toolchains/mipsel-linux-android-4.9/
drwxrwxrwx  3 lily lily 4096 renderscript/
drwxrwxrwx  3 lily lily 4096 x86-4.9/
drwxrwxrwx  3 lily lily 4096 x86_64-4.9/

In this way, there is no error in compilation

No toolchains found in the NDK toolchains folder for ABI with prefix

Lamdba in the studio part reports an error. Observe lamdba reports an error but can run

Question:

Ordinary lamdba can be used, such as view. Setonclicklistener {}

Some lamdbas are popular but can run, such as livedata. Observe() {}

solve:

It’s not because the Java version is backward. I updated the kotlin plug-in to solve this problem

Studio even pops up a warning pop-up window of “plug-in needs to be updated” in the lower right corner, but I ignore it everyday… Try to update the Java version and still can’t solve it before you notice it

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.

[Solved] Android Studio Compile error: Cannot use connection to Gradle distribution . as it has been stopped.

Article catalog

1、 Error message II. Solution

 

 

 

 

1、 Error message


 

Cannot use connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-5.6.4-all.zip' as it has been stopped.

 

 

 

 

2、 Solution


 

Occasional errors disappear after recompilation. This problem is encountered only once, and a record is made here;