appyx icon indicating copy to clipboard operation
appyx copied to clipboard

NodeComponentActivity - JVM signature issue

Open mkonkel opened this issue 1 year ago • 1 comments

While using:

class MainActivity : NodeComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContent {
           ...
        }
    }
}

I have an error during the build:

e: file:///Users/michalkonkel/Project/navigation/AppyxNavigation/composeApp/src/androidMain/kotlin/dev/michalkonkel/appyx/MainActivity.kt:12:1 Inherited platform declarations clash: The following declarations have the same JVM signature (onRequestPermissionsResult(I[Ljava/lang/String;[I)V):
    fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: IntArray): Unit defined in dev.michalkonkel.appyx.MainActivity
    fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray): Unit defined in dev.michalkonkel.appyx.MainActivity

mkonkel avatar May 09 '24 04:05 mkonkel

Hey @mkonkel, looks like you're using androidx.activity:activity-compose:1.9.0 in your project while in appyx we use 1.7.0. To make it compile - you need to downgrade it until we update to the latest version

KovalevAndrey avatar May 10 '24 14:05 KovalevAndrey

Yea, that's right. TBH, I implemented IntegrationPointProvider in MainActivuty by self to work with the problem.

mkonkel avatar May 13 '24 03:05 mkonkel