【2025年1月2日】关于腾讯云小程序平台更名为腾讯云超级应用服务的公告
控制台更新动态
Android SDK 更新动态
iOS SDK 更新动态
Flutter 更新动态
IDE 更新动态
基础库更新动态
AAPT: error: attribute android:requestLegacyExternalStorage not found.
AndroidManifest.xml 的 <application> 标签下添加如下配置:<applicationandroid:theme="@style/AppTheme"tools:replace="android:icon"tools:remove="android:requestLegacyExternalStorage">/application>
Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-v4-21.0.3-runtime (com.android.support:support-v4:21.0.3)
gradle.properties中添加如下代码:android.useAndroidX=trueandroid.enableJetifier=true
Execution failed for task ':app:kaptGenerateStubsDebugKotlin'.> 'compileDebugJavaWithJavac' task (current target is 1.8) and 'kaptGenerateStubsDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain
android {compileOptions {sourceCompatibility JavaVersion.VERSION_17 //需要匹配kapt版本targetCompatibility JavaVersion.VERSION_17 //需要匹配kapt版本}}

kapt.include.compile.classpath=false
android {defaultConfig {// 配置您需要支持的语言,其他语言会被排除resConfigs "en", "fr"}}

文档反馈