Skip to content

Fix Kotlin metadata incompatibility between Gradle 8.x and React Native plugin#13

Draft
Copilot wants to merge 9 commits intoprodfrom
copilot/update-memory-page-size-support
Draft

Fix Kotlin metadata incompatibility between Gradle 8.x and React Native plugin#13
Copilot wants to merge 9 commits intoprodfrom
copilot/update-memory-page-size-support

Conversation

Copy link
Contributor

Copilot AI commented Feb 7, 2026

React Native 0.68.2's gradle plugin expects Kotlin metadata 1.6.x but Gradle 8.0.2 bundles Kotlin stdlib 1.8.10, causing compilation failures:

Class 'kotlin.collections.CollectionsKt___CollectionsKt' was compiled with an incompatible version of Kotlin.
The binary version of its metadata is 1.8.0, expected version is 1.6.0.

Changes

  • Gradle 8.0.2 → 8.2: Better Kotlin metadata handling, includes stdlib 1.8.20
  • Kotlin 1.8.22 → 1.9.0: Compatible with Gradle 8.2's stdlib, improved backward compatibility with 1.6.x compiled code

Configuration

// android/build.gradle
ext {
    compileSdkVersion = 35
    targetSdkVersion = 35
    kotlin_version = '1.9.0'
}
dependencies {
    classpath('com.android.tools.build:gradle:8.1.4')
}
# android/gradle/wrapper/gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip

Maintains SDK 35 requirement for Google Play 16KB page size compliance while resolving Kotlin version conflicts.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 7, 2026 19:49
Co-authored-by: pedro-chiappani <49994882+pedro-chiappani@users.noreply.github.com>
Co-authored-by: pedro-chiappani <49994882+pedro-chiappani@users.noreply.github.com>
Copilot AI changed the title [WIP] Update app to support 16 kB memory page size Add Android 15 (API 35) support with 16KB page size compatibility Feb 7, 2026
Copilot AI requested a review from pedro-chiappani February 7, 2026 19:55
Copilot AI and others added 2 commits February 7, 2026 19:59
…e support

Co-authored-by: pedro-chiappani <49994882+pedro-chiappani@users.noreply.github.com>
Co-authored-by: pedro-chiappani <49994882+pedro-chiappani@users.noreply.github.com>
Copilot AI changed the title Add Android 15 (API 35) support with 16KB page size compatibility Fix build: Use API 34 with forward-compatible 16KB page size declaration Feb 7, 2026
Copilot AI and others added 2 commits February 7, 2026 20:06
…ance

Co-authored-by: pedro-chiappani <49994882+pedro-chiappani@users.noreply.github.com>
Co-authored-by: pedro-chiappani <49994882+pedro-chiappani@users.noreply.github.com>
Copilot AI changed the title Fix build: Use API 34 with forward-compatible 16KB page size declaration Upgrade to SDK 35 with AGP 8.1.4 for Google Play compliance Feb 7, 2026
Copilot AI and others added 2 commits February 7, 2026 20:11
Co-authored-by: pedro-chiappani <49994882+pedro-chiappani@users.noreply.github.com>
Co-authored-by: pedro-chiappani <49994882+pedro-chiappani@users.noreply.github.com>
Copilot AI changed the title Upgrade to SDK 35 with AGP 8.1.4 for Google Play compliance Fix Kotlin metadata incompatibility between Gradle 8.x and React Native plugin Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants