In general things are a shit show when you start u...
# compose
m
In general things are a shit show when you start using beta/rc/snapshot/eap -- there are so many variables that can mess things up: Kotlin compiler, embedded Kotlin compiler, script engine, gradle, compose compiler, ide plugins, wasmMain; jsMain; jvmMain dependencies
a
Trust me I know 😂 . I kind of had to, there was too many issues on iOS surrounding keyboard issues that made the app pretty unusable without fixes available in 1.5.x
• 1.5.0-beta01 - fixes a whole bunch of issues for iOS, some problems like keyboard issues still remain • 1.5.0-beta02 - fixes the keyboard issues on iOS, but makes the iOS build go from 1.5 minutes to 20 minutes (unless you ignore the suggestion to remove `kotlin.native.cacheKind=none` from gradle.properties) • 1.5.0-rc01 - fixes iOS build time issues but completely breaks my android build (not sure why 🤷 )
m
My build on Android is broken now too. Some libraries seem to require version 34 of the Android SDK but the latest AGP for IntelliJ doesn’t yet support this. Details:
Copy code
The project is using an incompatible version (AGP 8.1.0) of the Android Gradle plugin. Latest supported version is AGP 8.1.0-dev
See Android Studio & AGP compatibility options.
and
Copy code
2 issues were found when checking AAR metadata:

  1.  Dependency 'androidx.emoji2:emoji2-views-helper:1.4.0' requires libraries and applications that
      depend on it to compile against version 34 or later of the
      Android APIs.

      :androidApp is currently compiled against android-33.

      Also, the maximum recommended compile SDK version for Android Gradle
      plugin 8.1.0-rc01 is 33.

      Recommended action: Update this project's version of the Android Gradle
      plugin to one that supports 34, then update this project to use
      compileSdk of at least 34.

      Note that updating a library or application's compileSdk (which
      allows newer APIs to be used) can be done separately from updating
      targetSdk (which opts the app in to new runtime behavior) and
      minSdk (which determines which devices the app can be installed
      on).

  2.  Dependency 'androidx.emoji2:emoji2:1.4.0' requires libraries and applications that
      depend on it to compile against version 34 or later of the
      Android APIs.
      ...
a
I haven’t tried IntelliJ recently, I’m using Android Studio Hedgehog and works fine
but yea I had to bump to API 34 with a recent 1.5.0 beta build (01 or 02, can’t remember)
just ignore the warning, you can use current release versions of AGP with SDK 34
b
just a heads up that google play store will reject builds with
compileSdkVersion=34
and
targetSdkVersion=34
. play store will return
backendError
when you submit builds w/ this configuration. I am trying to troubleshoot this emoji issue rn. will probably end up forcing the lib to an older version
e
compileSdk=34 targetSdk=33 is what you should be using
thank you color 1
279 Views