IDE sync profiling incompatible with Android Studio Electric Eel Canary 8
See original GitHub issueWe’ve been using Gradle-profiler to benchmark sync times with different Android Studio versions. Recently when we tried to benchmark Android Studio Electric Eel (2022.1.1) Canary 8, we found a couple errors due to incompatibility. Thank you @rogerhu for the help with this investigation
Versions:
- [Android Studio Electric Eel (2022.1.1) Canary 8](https://developer.android.com/studio/archive](https://developer.android.com/studio/archive)
- Gradle Profiler version 0.18.0 or 1.19.0 (master)
Errors
java.lang.ClassNotFoundException: com.intellij.openapi.util.SystemInfoRt- Bigger, trickier issue:
java.lang.IncompatibleClassChangeError: Method 'com.intellij.util.messages.MessageBusConnection com.android.tools.idea.gradle.project.sync.GradleSyncState.subscribe(com.intellij.openapi.project.Project, com.android.tools.idea.gradle.project.sync.GradleSyncListener)' must be InterfaceMethodref constant- Stack Trace: https://gist.github.com/mikejuyoon/e9ccfd98e4b6d3854ebd90e725c4fd00
- Looks like the Android plugin source have changed on Android Studio EE but not in the Jetbrains code. So there is API incompatibility. i.e:
- GradleSyncState in Jetbrains/android vs: Android Studio’s GradleSyncStateImpl
- We have a temporary fix, only to get Gradle profiler working with AS EE. Will likely break on other AS. We used the android.jar packaged with AS EE and included it into
org.jetbrains.androidmodule library when building gradle profiler. See: https://github.com/gradle/gradle-profiler/commit/e8d21ad54c542b90389a9526a4cb0b51c112ef40
Issue Analytics
- State:
- Created a year ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Android Studio 2022.1.1 Closed Issues
Android Studio Electric Eel RC 1 (2022.1.1.16); Android Studio Electric Eel Beta 5 (2022.1.1.15) ... Compiler options are not included with IDE Gradle...
Read more >Android Studio Electric Eel 2022.1.1 Beta1 is an older Canary ...
After installing new EE Beta i encountered The project is using an incompatible version (AGP 7.4.0-beta01) of the Android Gradle plugin.
Read more >2022 - Android Studio Release Updates
Android Studio - Electric Eel | 2022.1.1 Canary 8 is now available in the Canary and Dev channels. If you already have an...
Read more >Android Studio Electric Eel Canary 8 now available - Reddit
206K subscribers in the androiddev community. News for Android developers with the who, what, where, when and how of the Android community.
Read more >Android Studio Official IDE Software Review by GoodFirms
For the Canary and Dev channels - Android Studio Electric Eel Canary 2 is currently available. For the Beta Channel - Android Studio...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@asodja 🎉 i checked the following versions with your branch and successfully measured sync! Thank you for the fix!
@mikejuyoon I believe this will fix it: https://github.com/gradle/gradle-profiler/pull/442, if you could maybe try that with
BumblebeeandChipmunk.