Flutter

[Flutter] Failed to apply plugin 'com.android.internal.version-check'.

에릭 Kim 2022. 9. 25. 15:30
반응형

플러터를 사용하다 보면 build gradle의 버전을 높여야 하는 경우가 생길 수 있다 

 

필자는 flutter의 flutter_local_notification 패키지를 사용을 위해 android set up을 하면서 다음과 같은 에러를 만날 수 있었다. 

 

Failed to apply plugin 'com.android.internal.version-check'. 

 

set up을 위해 app 수준의 build gradle과 android 수준의 build gradle을 조금 바꾸긴 했는데,

어디서 오는 에러인지 모르겠어서 구글링을 해보니 android 수준의 build gradle의 수정에서 오는 에러 였다 !!

 

android 수준의 build gradle의 buildscript 부분을 보면 dependencies를 추가할 수 있는 부분이 있다. 

 

기존의 build gradle 버전은 4.1.0 이었는데,

 

set up을 위해 4.2.2로 바꿔주니 에러가 발생하였다 !!

 

에러를 해결하기 위해 build gradle의 버전을 다시 원래 대로 되돌리니 에러는 해결 되었다 !!

 

원하는 패키지를 사용할 때도 최신의 버전을 사용하면 가장 좋겠지만, 자신의 설정 환경에 맞는 버전을 선택하여 사용하는 것도 필요할 거 같다 :)) 

 

https://stackoverflow.com/questions/37086806/android-studio-failed-to-apply-plugin-id-com-android-application

 

Android Studio - Failed to apply plugin [id 'com.android.application']

I am working on an app. In my app there is no error in code but when I try to run my project it gives following errors. Error:(1, 1) A problem occurred evaluating project ':app'. Failed to apply p...

stackoverflow.com

 

반응형