android - 如何编译 Android 11 测试应用

标签 android android-11

尝试在 Android 11 (API 30) 中测试应用,但无法编译。

错误:模块“app”:找不到平台“android-30”

enter image description here

enter image description here

最佳答案

替换:

compileSdkVersion 30

与:

compileSdkVersion 'android-R'

直到今年晚些时候我们才能使用 30

关于android - 如何编译 Android 11 测试应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60534650/

相关文章:

android - android设备中的图像缩放

java - 形态学函数瓶颈的 OpenCV Android 程序

android - 如何编辑 Android.manifest.template.xml 文件以接收推送通知

android - QUERY_ALL_PACKAGES 是如何执行的?

android - 如何从 android 11 设备的共享存储中选择图像?

android - 我们可以在android中同时在两个应用程序中使用前置摄像头吗?

Android 谷歌地图 : Failed to load map. 联系谷歌服务器时出错

android - 在 Android Studio 的 build.gradle 中设置的 Android R/11 的 API 级别是什么?

java - android.os.Parcel.createExceptionOrNull 致命异常 : java. lang.IllegalArgumentException

java - android,如何判断5G是NSA还是SA?