我尝试在 Android Studio 3.6 RC3 和 Android Studio 4.0 Canary 9 中使用多个版本的插件。插件无法打开。我在日志文件中发现了一个错误:
2020-02-24 17:15:40,455 [ 210135] ERROR - llij.ide.plugins.PluginManager - org.jetbrains.android.facet.AndroidFacet.getManifest()Lorg/jetbrains/android/dom/manifest/Manifest;
java.lang.NoSuchMethodError: org.jetbrains.android.facet.AndroidFacet.getManifest()Lorg/jetbrains/android/dom/manifest/Manifest;
at com.android.aas.util.ProjectUtils.getActionsXmlResourceUrl(ProjectUtils.java:47)
at com.android.aas.util.ProjectUtils.getActionModule(ProjectUtils.java:86)
at com.android.aas.ui.ActionSelectionDialog.lambda$readPackageNameSafely$4(ActionSelectionDialog.java:530)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:936)
at com.android.aas.ui.ActionSelectionDialog.readPackageNameSafely(ActionSelectionDialog.java:528)
at com.android.aas.ui.ActionSelectionDialog.lambda$getPreviewAndTryToInitializeModel$6(ActionSelectionDialog.java:598)
at com.intellij.openapi.progress.impl.CoreProgressManager$1.run(CoreProgressManager.java:225)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:894)
at com.intellij.openapi.progress.impl.CoreProgressManager$5.run(CoreProgressManager.java:447)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:169)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:591)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:537)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:156)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$null$9(ApplicationImpl.java:552)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2020-02-24 17:15:40,455 [ 210135] ERROR - llij.ide.plugins.PluginManager - Android Studio 3.6 RC 3 Build #AI-192.7142.36.36.6186006
2020-02-24 17:15:40,455 [ 210135] ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_212-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2020-02-24 17:15:40,455 [ 210135] ERROR - llij.ide.plugins.PluginManager - OS: Mac OS X
2020-02-24 17:15:40,456 [ 210136] ERROR - llij.ide.plugins.PluginManager - Plugin to blame: App Actions Test Tool version: 3.1.0
2020-02-24 17:15:40,456 [ 210136] ERROR - llij.ide.plugins.PluginManager - Last Action: AAS.Test
似乎该插件的3.1.3版本修复了此问题,但此版本与 3.6 RC3 或 4.0 Canary 9 不兼容。
有人有解决方案吗?