https://kotlinlang.org logo
#compose
Title
# compose
c

caelum19

03/08/2020, 8:24 PM
Hey guys, I'm getting a NoSuchMethodException on any @Preview I attempt to use after upgrading to dev06.
Copy code
composeOptions {
        kotlinCompilerExtensionVersion = "0.1.0-dev06"
        kotlinCompilerVersion "1.3.61-dev-withExperimentalGoogleExtensions-20200129"
    }
    buildFeatures {
//        viewBinding = true
       compose true
    }
Anyone else experienced this?
Having compose = true / compose true in the past has given me this problem too so I had kept it commented out, but now it appears now to work with it commented out either
a

Adam Powell

03/08/2020, 9:27 PM
You'll want to make sure it's enabled in your Gradle files and that you have the right kotlinc version configured too. There should be some posts here I'm this channel for the specifics. You might also want to clean your project and rebuild if you haven't
c

caelum19

03/08/2020, 9:41 PM
Could it be because I'm using kotlin-multiplatform? I tried deleting ./.gradle, ./build, ./app/build, ~/.gradle, invalidated & restarted and no luck. Also when I checkout my project before upgrading to dev06 it works fine 🙂
c

caelum19

03/09/2020, 10:55 PM
@gumil Thanks! I did have that already but I found it from your original post 😄 Thanks for your help guys. It appears that some code involving suspend functions and lambdas is the cause for my issue, I removed a large section of my app that I'm not currently working on as I don't have the time to isolate each problem area. (If you've found this through slack search and have the same issue that doesn't fix with those options let me know and we can fix it together)
2 Views