2월, 2022의 게시물 표시

mac 노트북에서 유튜브 버벅거리고 작동 안함

 LG 모니터 연결해서 쓰는데 모니터 스피커 쓰니까 뭔가 잘 안 맞는 듯하다 스피커 설정을 블루투스 이어폰이나 본체로 바꾸면 잘 작동한다.

primarySwatch는 Colors.black을 받지 않는다.

The argument type 'Color' can't be assigned to the parameter type 'MaterialColor?'  material color를 받기 때문에 white랑 black을 에러가 난다 https://stackoverflow.com/questions/52577366/error-while-changing-the-flutter-theme-color-to-black

flutter admob 구글 배너 광고 추가

 flutter admob 구글 베너 광고 추가 https://developers.google.com/admob/android/quick-start?hl=ko#import_the_mobile_ads_sdk https://developers.google.cn/admob/flutter/banner?hl=ko#banner_ad_events 공식 튜토리얼 따라해서 성공 코드 import 'package:flutter/material.dart' ; import 'package:google_mobile_ads/google_mobile_ads.dart' ; class adtest extends StatefulWidget { const adtest({Key? key}) : super (key: key) ; @override _adtestState createState () => _adtestState () ; } class _adtestState extends State<adtest> { final BannerAd myBanner = BannerAd ( adUnitId: BannerAd. testAdUnitId , size: AdSize. banner , request: AdRequest () , listener: BannerAdListener () , ) ; @override Widget build (BuildContext context) { myBanner .load() ; final AdWidget adWidget = AdWidget (ad: myBanner ) ; return Scaffold ( body: Container ( alignment: Alignment. center , child: adWidget , width: myBanner . size . width .toDouble() , ...

[flutter]multidex 에러

이걸로 해결 https://282-ground.tistory.com/167  

[flutter]The Google Mobile Ads SDK was initialized incorrectly

 The Google Mobile Ads SDK was initialized incorrectly manifest파일에서 잘못된 위치여서 그랬던 것 https://stackoverflow.com/questions/65633194/the-google-mobile-ads-sdk-was-initialized-incorrectly

[flutter]Your project requires a newer version of the Kotlin Gradle plugin.

  ┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────┐ │ [!] Your project requires a newer version of the Kotlin Gradle plugin.                       │ │ Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then │ │ update ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\android\build.gradle:               │ │ ext.kotlin_version = '<latest-version>'                                                      │ └──────────────────────────────────────────────────────────────────────────────────────────────┘ minsdk 고쳤더니 나온 오류 ext.kotlin_version은  projectName/android/app/build.gradle 쪽이 아니라 projectName/android/build.gradle 여기에 있다 https://stackoverflow.com/questions/70919127/your-project-requ...

[flutter] uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:google_mobile_ads]

 uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:google_mobile_ads]  ..../AndroidManifest.xml as the library might be using APIs not available in 16 Suggestion: use a compatible library with a minSdk of at most 16, or increase this project's minSdk version to at least 19, or use tools:overrideLibrary="io.flutter.plugins.googlemobileads" to force usage (may lead to runtime failures) 에러가 친절하게 minSdk를 고치라고 알려줬다. minSdk는 안드로이드 build gradle에 minsdkversion 고치면 된다고한다. https://stackoverflow.com/questions/52060516/how-to-change-android-minsdkversion-in-flutter-project --- ..안드로이드만 바꿔도 되는건가?

[git] gitignore에 새로 추가했는데 적용이 안될 때

 gitignore에 새로 추가했는데 적용이 안될 때 캐시를 지우고 다시 커밋해준다 https://jojoldu.tistory.com/307

[flutter] Navigator operation requested with a context that does not include a Navigator.

 Navigator operation requested with a context that does not include a Navigator. https://stackoverflow.com/questions/50124355/flutter-navigator-not-working/50125296 void main() => runApp(MaterialApp(home: FooClass(),)); 로 고쳐서 해결