Hey all, I'm unsure where to ask this. I just upgr...
# intellij-plugins
s
Hey all, I'm unsure where to ask this. I just upgraded to the 1.5.20 plugin in Android Studio, and now a gradle sync attempt of a project that used to sync fails with this (from idea.log). Has anyone else seen this?
2021-06-28 09:49:46,152 [1139676]  ERROR - intellij.openapi.progress.Task - null
java.lang.NullPointerException
at com.intellij.workspaceModel.ide.impl.legacyBridge.library.LibraryModifiableModelBridgeImpl$setKind$1.invoke(LibraryModifiableModelBridgeImpl.kt:280)
at com.intellij.workspaceModel.ide.impl.legacyBridge.library.LibraryModifiableModelBridgeImpl$setKind$1.invoke(LibraryModifiableModelBridgeImpl.kt:29)
at com.intellij.workspaceModel.storage.impl.WorkspaceEntityStorageBuilderImpl.modifyEntity(WorkspaceEntityStorageImpl.kt:124)
at com.intellij.workspaceModel.ide.impl.legacyBridge.library.LibraryModifiableModelBridgeImpl.updateProperties(LibraryModifiableModelBridgeImpl.kt:130)
at com.intellij.workspaceModel.ide.impl.legacyBridge.library.LibraryModifiableModelBridgeImpl.setKind(LibraryModifiableModelBridgeImpl.kt:279)
at org.jetbrains.kotlin.idea.configuration.KotlinGradleLibraryDataService.postProcess(KotlinGradleSourceSetDataService.kt:194)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManagerImpl.lambda$doImportData$1(ProjectDataManagerImpl.java:276)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManagerImpl.importData(ProjectDataManagerImpl.java:126)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManagerImpl.importData(ProjectDataManagerImpl.java:206)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManagerImpl.importData(ProjectDataManagerImpl.java:213)
at com.android.tools.idea.gradle.project.sync.idea.IdeaSyncPopulateProjectTask.populateProject(IdeaSyncPopulateProjectTask.java:53)
at com.android.tools.idea.gradle.project.sync.idea.ProjectSetUpTask.doPopulateProject(ProjectSetUpTask.java:54)
at com.android.tools.idea.gradle.project.sync.idea.ProjectSetUpTask.onSuccess(ProjectSetUpTask.java:48)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$2.handExecutionResult(ExternalSystemUtil.java:584)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$2.executeImpl(ExternalSystemUtil.java:564)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$2.lambda$execute$1(ExternalSystemUtil.java:389)
at com.intellij.openapi.project.DumbServiceHeavyActivities.suspendIndexingAndRun(DumbServiceHeavyActivities.java:21)
at com.intellij.openapi.project.DumbServiceImpl.suspendIndexingAndRun(DumbServiceImpl.java:185)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$2.execute(ExternalSystemUtil.java:389)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4.run(ExternalSystemUtil.java:666)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:962)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:472)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:235)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:235)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
2021-06-28 09:49:46,153 [1139677]  ERROR - intellij.openapi.progress.Task - Android Studio Arctic Fox | 2020.3.1 Beta 4  Build #AI-203.7717.56.2031.7435690
2021-06-28 09:49:46,153 [1139677]  ERROR - intellij.openapi.progress.Task - JDK: 11.0.10; VM: OpenJDK 64-Bit Server VM; Vendor: Oracle Corporation
2021-06-28 09:49:46,153 [1139677]  ERROR - intellij.openapi.progress.Task - OS: Windows 10
2021-06-28 09:49:46,153 [1139677]  ERROR - intellij.openapi.progress.Task - Plugin to blame: Kotlin version: 203-1.5.20-release-289-AS7717.8
2021-06-28 09:49:46,153 [1139677]  ERROR - intellij.openapi.progress.Task - Last Action: EditorDelete
2021-06-28 09:49:46,257 [1139781]   INFO - cState$SyncStateUpdaterService - stopTrackingTask(RESOLVE_PROJECT:1)
2021-06-28 09:49:46,257 [1139781]   WARN - e.project.sync.GradleSyncState - Gradle sync failed: Sync failed: reason unknown (50 s 270 ms)
p
Happening here the whole time 😕
s
I created issue https://youtrack.jetbrains.com/issue/KT-47547, will see what happens
p
Upvoted
Can you post your settings Gradle modules?
I have the suspicion that it's related to some namings
s
Here is contents of settings.gradle.kts, pretty simple. It's a multiplatform multimodule project, all android-specific stuff is in androidApp module. Is this what you wanted?
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
google()
}
}
rootProject.name = "Monay2"
include(":ioCommon")
include(":jillcess")
include(":monayCommon")
include(":androidApp")
p
It doesn't back my suspicion. That was on nested modules
s
I'm gonna be on the road so access will be spotty next few days, and I won't have time for my own research of this until next week. I'll keep an eye on this thread, and the issue, for any activity. Fingers crossed :-)
p
@Skolson5903 Have you at least found a workaround? I'm fighting with this for two days and when I fix it somehow it appears a few minutes later 🤯
s
Sorry I've been gone for a while. I can't figure out the pattern with this thing. Right now it mostly isn't happening, but I've had it pop up after certain activities and then go away again. The issue I filed has been picked up by someone at jetbrains so I hope they can find it even though I can't seem to reliably recreate it.
p
I've dropped you a comment with a fix