Trying to build any of the compose demos in the re...
# compose
l
Trying to build any of the compose demos in the repo fails with a compiler error:
Copy code
Caused by: java.lang.AssertionError: lastLineNumber shall be not negative, but is -1
	at org.jetbrains.kotlin.backend.jvm.codegen.IrSourceCompilerForInline.doCreateMethodNodeFromSource(IrSourceCompilerForInline.kt:98)
	at org.jetbrains.kotlin.codegen.inline.InlineCodegen$Companion.createInlineMethodNode$backend(InlineCodegen.kt:538)
	at org.jetbrains.kotlin.codegen.inline.InlineCodegen.performInline(InlineCodegen.kt:139)
	...
Not sure they currently don't compile and you're aware of this or my setup is wrong (I only followed the steps to clone the repo and ran
repo sync
). I also tried applying the kotlinc 1.3.61 patch but nothing changed. The command I ran was
./gradlew :ui:ui-material:integration-tests:ui-material-demos:installDebug
l
Hm, not sure why that crashes in particular, but I think you should use this command anyway:
./gradlew ui:integration-tests:demos:installDebug
Does this work? It's possible that you have some kind of caching error - do you have any local commits or are you just building head?
l
Same issue with that command. I don't have any local commits, I just ran
repo sync
after
repo init
. I'll try deleting the directory and starting over
l
Yeah, that seems really strange.
l
Same issue, I ran these commands:
repo init -u <https://android.googlesource.com/platform/manifest> -b androidx-master-dev
repo sync -j8 -c
cd frameworks/support/ui
./gradlew ui:integration-tests:demos:installDebug
Not sure I'm missing some step
l
What happens if you try running:
../cleanBuild.sh ui:integration-tests:demos:installDebug
Same thing, but also deletes some gradle caches and cached output
l
Yup, that one worked. Thanks!
l
Strange 🙂