programing tip

Android Studio에서 debug.keystore는 어디에 있습니까?

itbloger 2020. 7. 8. 07:59
반응형

Android Studio에서 debug.keystore는 어디에 있습니까?


Google+ API를 사용하도록 설정해야합니다 debug.keystore. Android Studio로 전환하여 어디에 있는지 모릅니다. ~ / .android / debug.keystore 경로의 이클립스에서 찾을 수 있습니다.


편집 1 단계) 파일> 프로젝트 구조> 프로젝트 선택> "서명"으로 이동하여 원하는 기본 또는 키 저장소를 선택하고 모든 세부 사항을 채우십시오. 세부 사항을 채울 수없는 경우 녹색 '+'단추를 누르십시오. 스크린 샷에서 강조 표시했습니다.여기에 이미지 설명을 입력하십시오

2 단계) 매우 중요 : 빌드 유형으로 이동> 빌드 유형을 선택하고 "서명 구성"을 선택하십시오. 제 경우에는 "config"를 선택했습니다. 강조 표시된 영역을 확인하십시오.여기에 이미지 설명을 입력하십시오


  • Windows 사용자의 경우 : C:\Users\USERNAME\.android\debug.keystoreUSERNAME을 PC 이름으로 변경하십시오 .

  • Linux 또는 Mac OS 사용자의 경우 : ~/.android/debug.keystore

SHAH1명령 프롬프트를 사용하여 아래 코드를 살펴보십시오 .

  keytool -list -v -keystore "C:\Users\USERNAME\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

주요 정보를 찾는 또 다른 방법은 Java 폴더로 이동하는 것입니다.

C:\Program Files\Java\jdk1.8.0_60\bin

다음 명령을 실행하십시오.

keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

명령에서 키 저장소 주소가 "c : \ users / <% mylogin %>. android \ debug.keystore"이고 별명이 "androiddebugkey"이고 저장소 비밀번호가 "android"이고 키 비밀번호가 "android"임을 쉽게 확인할 수 있습니다.

Android 'Get API Key'문서의 기본 구성입니다. https://developers.google.com/maps/documentation/android-api/signup


Android Studio에서는 콘솔 명령없이 모든 앱 서명 정보를 찾을 수 있습니다.

  1. 프로젝트를여십시오

  2. 오른쪽 패널에서 Gradle을 클릭하십시오

  3. Gradle 프로젝트 패널에서 폴더를 엽니 다 : 프로젝트-> 작업-> Android

  4. signingReport 작업 (두 번 클릭)을 실행하면 Gradle 콘솔 (키 저장소 경로, SHA1, MD5 등)에 결과가 표시됩니다.

보고서 작업 및 결과 서명


이 문제가 발생했습니다. debug.keystore파일이 누락되었습니다. 따라서 올바른 파일을 만든 유일한 단계 는 Android Studio에서 새 Android 프로젝트를 만드는 것입니다.

debug.keystore경로 아래 에 새로운 것을 만들었습니다 C:\Users\username\.android\.

이 솔루션은 아직 프로젝트를 만들지 않은 경우에만 작동합니다.


이 명령을 사용할 수 있으며 모든 키 저장소를 가져오고 터미널로 이동하여 Android 루트 디렉토리에서 다음을 실행하십시오.

./gradlew signingReport

다음과 같은 키 저장소 및 정보 목록을 제공합니다.

여기에 이미지 설명을 입력하십시오


그것은 나를 도왔다.

키 저장소 이름 : "debug.keystore"키
저장소 비밀번호 : "android"
키 별명 : "androiddebugkey"
키 비밀번호 : "android"

엑 사플

USER_NAME_PC-PC 사용자 이름


Windows에서는

goto 명령 프롬프트와 경우에 따라 cd C:\Program Files\Java\jdk-10.0.2\bin>위치 jdk-10.0.2 or full path가 다를 수 있습니다. 당신이 빈에 한 번,이 코드를 입력 내 경우에는 키 스토어 경로입니다.keytool -keystore C:\Users\GB\.android/debug.keystore -list -vC:\Users\GB\.android/debug.keystore

이와 같은 결과를 얻을 수 있습니다.

여기에 이미지 설명을 입력하십시오


[해결됨] 동일한 Windows 10 컴퓨터에서 사용자 이름을 변경 한 후 앱을 다시 실행하는 방법

Android Studio에서 파일> 프로젝트 구조> 앱> "+"를 클릭하여 새 구성 "config" 파일> 프로젝트 구조> 앱> 서명

In Flavors tab > Signing box, chose new "config" entry File > Project Structure > app > Flavors

This reconfigured the app. Closed & restarted Studio

Clicked Build > Rebuild Project

The app added and showed this automatically: build.gradle

When I tested the app on a cell phone, Studio asked to reinstall the app with this new configuration. App runs as before!

DynaMike


On Windows, if the debug.keystore file is not in the location (C:\Users\username\.android), the debug.keystore file may also be found in the location where you have installed Android Studio.


The easiest thing I can think of is to grab the fingerprint from the debug.keystore (paths are mentioned in other answers) and add that to your project. No need to copy keystores or add new apps. Just append to the list of fingerprints for each machine you develop on.

FWIW, I ran into this when I switched from one laptop to another. I bounce around a lot.

https://support.google.com/firebase/answer/7000104?hl=en#sha1

Hope that helps some folks out! :)


The default keystore file: debug.keystore is present in the folder .android which is usually located in the default home folder of your operating system of the user who installed that Android SDK.

In my Ubuntu PC, it's location is /home/dhananjay/.android

Whereas in the Windows PC it is located at C:\Users\dhananjay\.android


From the Android Developers documentation about Signing your app :

디버그 인증서 만료

[...] 파일은 다음 위치에 저장됩니다.

  • ~/.android/ OS X 및 Linux에서
  • C:\Documents and Settings\<user>\.android\ Windows XP에서
  • C:\Users\<user>\.android\ Windows Vista 및 Windows 7, 8 및 10에서

=========================================

standart 파일 탐색기에서 :

=========================================

standart 파일 탐색기에서 :

=========================================

보기 탭을 열고 숨겨진 항목을 확인하십시오.

=========================================

보기 탭을 열고 숨겨진 확인

=========================================

이제 .android 폴더를 볼 수 있습니다

=========================================

이제 .android 폴더를 볼 수 있습니다

참고 URL : https://stackoverflow.com/questions/16965058/where-is-debug-keystore-in-android-studio

반응형