How can I get an Android 11 test app to compile

AndroidDev :

Trying to test an app in Android 11 (API 30), but it won't compile.

Error: Module 'app': platform 'android-30' not found

enter image description here

enter image description here

CommonsWare :

Replace:

compileSdkVersion 30

with:

compileSdkVersion 'android-R'

We will not be able to use 30 until later this year.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=26215&siteId=1