I am trying to run my flutter app but I got some error.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Specified AAPT2 executable does not exist: C:\Users\john\.gradle\caches\transforms-2\files-2.1\a406eb4ba72ff395bc6c8b1db90b3b1f\aapt2-3.5.0-5435860-windows\aapt2.exe.
Must supply one of aapt2 from maven or custom location.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
This is my buildscript
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
Last time I can run my flutter app but now I don't know what happened. I hope you can help me. TIA