개발/fluttter

[flutter] 빌드 에러 수정 기록

ttoance 2025. 3. 19. 17:00
반응형

The current Dart SDK version is 3.5.3.
Because japanese_qz requires SDK version ^3.6.0, version solving failed.
You can try the following suggestion to make the pubspec resolve:
* Try using the Flutter SDK version: 3.29.2. 

 

flutter upgrade 3.27.1

 

 

 

 

 


FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':google_mobile_ads'.
> Could not create an instance of type cohttp://m.android.build.api.variant.impl.LibraryVariantBuilderImpl.
   > Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

     If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.

* 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.

BUILD FAILED in 45s
Error: Gradle task assembleDebug failed with exit code 1

[Flutter] A problem occurred configuring project ':google_mobile_ads'. 에러 해결 방법

 

[Flutter] A problem occurred configuring project ':google_mobile_ads'. 에러 해결 방법

Flutter 개발 공부 도중 admob 플러그인(google_mobile_ads)을 추가하여 앱을 실행하였더니 다음과 같은 오류가 떨어졌다.A problem occurred configuring project ':google_mobile_ads'.> Could not create an instance of type com.andr

expect.tistory.com

flutter pub upgrade google_mobile_ads

 

 

 

java.lang.RuntimeException: Unable to get provider cohttp://m.google.android.gms.ads.MobileAdsInitProvider: java.lang

 

[Flutter/에러해결] AdMob 초기화 에러 해결 (Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider)

 

[Flutter/에러해결] AdMob 초기화 에러 해결 (Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider)

1. 상황 플러터 내부에 AdMob 배너를 설치하던 중에 다음과 같은 에러가 발생했다. > The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers should follow the instru

velog.io

 

 

 

[참고] 

flutter clean
Remove-Item -Recurse -Force android\.gradle
flutter pub get
flutter build apk
반응형

'개발 > fluttter' 카테고리의 다른 글

[flutter] figma to code 이용해보기  (0) 2025.01.15
[flutter] no directionary widget found  (0) 2025.01.15
[flutter] figma2flutter 이용해보기  (0) 2025.01.15