본문 바로가기
Flutter

[빌드에러] 갑자기 나타난 App problem occurred evaluating project ':app'. > path may not be null or empty string. path='null'

by 언제나푸르게 2021. 2. 10.

오랜만에 빌드를 하려니 이런 에러가 떴다.

이것저것 찾아보던중 keytool 관련 에러인것 같기도 하고... google-services.json 문제인것 같기도했다.

하지만 둘다 문제는 아니였고 

 

말 그대로 key.properties 파일 경로를 찾지 못해서 나오는 에러였다.

 

깃으로 내려받는 바람에 해당파일이 푸쉬되지 않았던것 같았다.

릴리즈 하기위해선 위 파일이 존재해야하지만

디버그 모드에서만 사용하려면

 

 android / app / build.gradle 에서

 

    /*signingConfigs {
    release {
  keyAlias keystoreProperties['keyAlias']
        keyPassword keystoreProperties['keyPassword']
        storeFile file(keystoreProperties['storeFile'])
        storePassword keystoreProperties['storePassword']
    }
}
buildTypes {
    release {
        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so `flutter run --release` works.
        signingConfig signingConfigs.release
    }
   */`

다음과 같이 주석처리 해주면 해결된다!

 

 교훈 : 고민하지말자 검색하자

 

[관련링크] 

stackoverflow.com/questions/54457245/a-problem-occurred-evaluating-project-app-path-may-not-be-null-or-empty-st

 

A problem occurred evaluating project ':app'. > path may not be null or empty string. path='null'

Iam facing error while iam trying to run flutter. D:\fluttapp\testbuild>flutter run Launching lib/main.dart on Google Pixel 2 XL in debug mode... Initializing gradle... ...

stackoverflow.com