Tag Archives: AS

After updating to Android studio 4.1, it is found that as cannot be opened

Programmer algorithm practice must read, common Java API skills to share>>>

Preface

I received the as update 4.1 push today. I found that I couldn’t open it after I finished it. I reported the following error

Internal error. Please refer to https://code.google.com/p/android/issues

java.lang.NoSuchMethodError: com.intellij.ide.plugins.PluginManagerCore.loadDescriptors()[Lcom/intellij/ide/plugins/IdeaPluginDescriptorImpl;
    at com.a.a.b.b.ar.a(ar.java:121)
    at com.a.a.b.b.ar.a(ar.java:71)
    at com.intellij.idea.MainImpl.start(MainImpl.java:19)
    at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:303)
    at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:245)
    at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:47)
    at java.lang.Thread.run(Thread.java:748)

-----
JRE 1.8.0_242-release-1644-b01 amd64 by JetBrains s.r.o
C:\Program Files\Android\Android Studio\jre\jre

So I checked, and I did correct the problem, so I made a record

The problem is

The root of the problem is that some plug-ins don’t support higher versions, and then they can’t start. To be honest, it’s not humanized to start them directly

The solution is: go to this directory

C:\Users\{user}\AppData\Roaming\Google\AndroidStudio4.1\plugins

Then copy all the folders or jar packages (actually the plug-ins you downloaded), and delete the ones in the original location. Try to open them. If you can, use the binary search method to find out which plug-in is not supported, and then do not use this plug-in

PS: Note: you must copy before deleting, not cutting. You can understand everything you know PS

If it’s not enough to remove all the above directories, it may be that there is a problem with the plug-in (the probability is very small). The directory here is also a binary search to test

C:\Program Files\Android\Android Studio\plugins

Problems can generally be solved

end

AS Import Project Error: Plugin with id ‘com.android.application’ not found.

Import the project obtained from GitHub or the third party demo into Android studio and report an error. Plug in with ID ‘com. Android. Application’ not found; Today, I imported a demo of iFLYTEK to see the directory of the project is obviously wrong. I feel that there is a build. Gradle missing; Build. Gradle with only module and build. Gradle without project

The normal thing is this:

So Baidu circle, give the solution

1. Find a project that can be compiled normally or create a new project. Copy the code in build. Gradle in project, as shown in the figure below

2. Paste it into the build. Gradle of the error reporting project and put it at the bottom. The code below is as follows

buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.0'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

Paste position:

Once compiled, it will pass; Generally, the reason for this problem is that someone else threw the module directly