I wrote a beginner demo of Flutter as a small blob. When compiling the Flutter for Android, I reported the following error code:

Daemon: AAPT2 aapt2-3.1-4818971-osx Daemon #0

screenshots

Solution:

Go to the android/app/build.gradle file of the project, change the compiled SDK version to 28, and recompile it.



The code is as follows:

compileSdkVersion 28

Welcome to pay attention to personal public number: Jun Wei said.

Personal Website:https://wayne214.github.io

A temperature of the public account, scan code concern oh.