Flutter ์ค๋ฅ
Flutter Execution failed for task ':permission_handler_android:extractDebugAnnotations'.
๋ฐ๋ถ์ฅ
2022. 12. 17. 01:09
Flutter android ๋น๋ ๋ฐ ๋ฆด๋ฆฌ์ฆ๋ชจ๋๋น๋์
Execution failed for task ':permission_handler_android:extractDebugAnnotations'.
> Lint infrastructure error
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.NullPointerException
์์ ๊ฐ์ ์ค๋ฅ๊ฐ ๋ฐ์
๊ตฌ๊ธ๋ง์ ์ฌ๋ฌ๋ฒ ํด์ ์ฐพ์ ํด๊ฒฐ๋ฒ์ Gradle ๋ฒ์ ์ ๊ทธ๋ ์ด๋์ด๋ค.
ํด๊ฒฐ๋ฒ
1. ๊ฒฝ๋ก
android/build.gradle
ext.kotlin_version = '1.6.10' // ์ผ๋ก ๋ณ๊ฒฝ
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // ์ผ๋ก ๋ณ๊ฒฝ
}
2.๊ฒฝ๋ก
ํ๋ก์ ํธ/android/gradle/wrapper/gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
// ์ผ๋ก ๋ณ๊ฒฝ
3. flutter clean && flutter run