플러터/Flutter 에러

1

warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 warnings
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings

 

AOS로 실행은 되지만 위와 같은 빨간줄이 계속 뜨는걸 볼 수 있습니다.

이 경우에는 android/build.gradle에서 allprojects 내에 아래 코드를 추가해주시면 됩니다.

 

tasks.withType(JavaCompile) {
  options.compilerArgs << '-Xlint:-options'
}

'플러터 > Flutter 에러' 카테고리의 다른 글

[Flutter] Firebase iOS 실행 오류  (0) 2025.01.29

dependencies에 firebase 추가 후 iOS로 run 했을 때 아래와 같은 에러 발생할 경우

Lexical or Preprocessor Issue (Xcode): Include of non-modular header inside framework module
'firebase_database.FLTFirebaseDatabaseObserveStreamHandler':
'/Users/heitor.candido/Documents/inteliApp/inteli/ios/Pods/Headers/Public/Firebase/Firebase.h'
/Users/heitor.candido/.pub-cache/hosted/pub.dev/firebase_database-11.1.1/ios/Classes/FLTFirebaseDatabaseObserveStreamHandler.h:3:8

 

ios - Runner.xcworkspace를 Finder에서 열어서 더블클릭으로 실행.

 

Runner 클릭해서 Build Settings에서

"Allow Non-modular Includes in Framework Modules" 검색해서 Yes로 변경해주면 에러없이 실행됩니다.


+ Recent posts