2014-12-05 7 views
0

Android Studio에서 출시 모드로 Android 앱에 서명하려고합니다.Android Studio의 릴리스 모드에서 Android 앱을 제작하는 중 오류가 발생했습니다.

이어서 나는 this official guide을 따른다. 그래서 키 스토어와 개인 키를 만들었습니다. 그런 다음 빌드 -> 생성 된 서명 된 API 키에서 서명 된 APK를 생성하려고했습니다. 그러나 다음 오류와 함께 빌드가 실패합니다.

:app:packageRelease FAILED 
Error:A problem was found with the configuration of task ':app:packageRelease'. 
> File 'C:\Documents\myapp\android.jks' specified for property 'signingConfig.storeFile' does not exist. 

또한 build.gradle 구성을 확인했습니다.

은 어떤 문제가
buildTypes { 
     release { 
      runProguard false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
      signingConfig signingConfigs.releaseConfig 
     } 
    } 

:

signingConfigs { 
     releaseConfig { 
      keyAlias 'xxxxxxxxxx' 
      keyPassword 'xxxxxxxxx' 
      storeFile file('C:\Documents\myapp\android.jks') 
      storePassword 'xxxxxxxxx' 
     } 
    } 

하지만 같은 Gradle을 파일에

내가 이것을 가지고 : 그리고 나는이를 발견했다?

+0

파일'android.jks'가 C : \ Documents \ myapp \에 존재합니까? 물론 –

+0

, @PetrDuchek – GVillani82

답변

0

난 그저 내 안드로이드 프로젝트의 기본 경로 내부의 키 스토어를 이동, 문제를 해결했다.

0

\\에 의해 \ 교체 :

storeFile file('C:\\Documents\\myapp\\android.jks') 
관련 문제