maps icon indicating copy to clipboard operation
maps copied to clipboard

Execution failed for task ':rnmapbox_maps:compileDebugKotlin'.

Open SmitChavan24 opened this issue 10 months ago • 6 comments

ecution failed for task ':rnmapbox_maps:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction Compilation error. See log for more details

android/buid.gradle buildscript { ext { buildToolsVersion = "35.0.0" minSdkVersion = 24 compileSdkVersion = 35 targetSdkVersion = 34 ndkVersion = "26.1.10909125" kotlinVersion = "1.9.24" RNMapboxMapsImpl = "mapbox" // RNMapboxMapsVersion = '10.1.33' } repositories { google() mavenCentral() maven { url 'https://www.jitpack.io' } } dependencies { classpath("com.android.tools.build:gradle") classpath("com.facebook.react:react-native-gradle-plugin") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")

react native version v0.77

SmitChavan24 avatar Feb 03 '25 07:02 SmitChavan24

Yes it's fixed use patch https://github.com/rnmapbox/maps/issues/3753

On Tue, 4 Feb, 2025, 12:55 pm Purushottam Samlety, @.***> wrote:

is this fixed? any updates?

— Reply to this email directly, view it on GitHub https://github.com/rnmapbox/maps/issues/3765#issuecomment-2633079083, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3Q7UMZBRBZTGQUXJW5JYF32OBTOHAVCNFSM6AAAAABWLOI4O2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZTGA3TSMBYGM . You are receiving this because you authored the thread.Message ID: @.***>

SmitChavan24 avatar Feb 04 '25 07:02 SmitChavan24

If i downgrade the kotlin version from 1.9.24 to 1.8.22 ?, will it work without apply the patch , Or do I need to apply the patch ?

Purushottam18 avatar Feb 04 '25 08:02 Purushottam18

You have to apply the patch it's necessary

On Tue, 4 Feb, 2025, 1:45 pm Purushottam Samlety, @.***> wrote:

If i downgrade the kotlin version from 1.9.24 to 1.8.22 ?, will it work without apply the patch , Or do I need to apply the patch ?

— Reply to this email directly, view it on GitHub https://github.com/rnmapbox/maps/issues/3765#issuecomment-2633177902, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3Q7UM6RIBKRCMURKGAFI532OBZKJAVCNFSM6AAAAABWLOI4O2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZTGE3TOOJQGI . You are receiving this because you authored the thread.Message ID: @.***>

SmitChavan24 avatar Feb 04 '25 08:02 SmitChavan24

Ok, Thanks for help

Purushottam18 avatar Feb 04 '25 08:02 Purushottam18

Not working for me getting errors like this file:///xxx/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXCalloutManager.kt:15:49 Argument type mismatch: actual type is 'com.rnmapbox.rnmbx.components.annotation.RNMBXCalloutManager', but 'U!' was expected.

anandtatva avatar Feb 06 '25 05:02 anandtatva

Worked for me after installing @react-native/gradle-plugin 0.77 and upgrading distributionUrl to gradle-8.9-all.zip in gradle-wrapper.properties. My project is targeting to React Native version 0.75.3

Usmanqayyum109 avatar Mar 17 '25 09:03 Usmanqayyum109

If you have react-native 0.77 and use the old architecture, you need minimum 10.1.42

hexadecy avatar Sep 05 '25 18:09 hexadecy

Should be addressed in current versions.

mfazekas avatar Oct 16 '25 13:10 mfazekas