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