From 80d99d6bddb2af0980297b46048ff43d2d919412 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 6 Sep 2025 17:25:05 +0800 Subject: [PATCH] Fix Android namespace issues: add namespace to build.gradle, update AGP and Kotlin versions --- android/build.gradle | 5 +++-- example/android/build/reports/problems/problems-report.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 8ec6dae..e0f6781 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,14 +2,14 @@ group 'com.yuanxuan.yx_asr' version '1.0.0' buildscript { - ext.kotlin_version = '1.7.10' + ext.kotlin_version = '1.8.22' repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.3.0' + classpath 'com.android.tools.build:gradle:8.1.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } @@ -25,6 +25,7 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { + namespace 'com.yuanxuan.yx_asr' compileSdkVersion 33 compileOptions { diff --git a/example/android/build/reports/problems/problems-report.html b/example/android/build/reports/problems/problems-report.html index 2743504..ba020d1 100644 --- a/example/android/build/reports/problems/problems-report.html +++ b/example/android/build/reports/problems/problems-report.html @@ -650,7 +650,7 @@ code + .copy-button {