developer tip

이전 버전의 Android Studio에서 설정을 어디에서 가져 오나요?

optionbox 2020. 12. 10. 19:52
반응형

이전 버전의 Android Studio에서 설정을 어디에서 가져 오나요?


나는 Droidio (Android Studio) 0.6.1을 실행하고있었습니다. 거기에서 나는 최신 버전으로 업데이트 할 수 없었습니다 (0.8으로의 비약적 도약); 별도로 다운로드하여 Windows 탐색기에서 설치해야했습니다. 그러나 이제 설치 프로세스는 이전 설정을 찾고 있습니다.

여기에 이미지 설명 입력

나를 데려 가고 싶은 곳은 여기 (안드로이드 폴더라고 생각한다) "압축 된 줄임표"(점 1 개) 버튼을 눌렀을 때 표시되는 내용입니다.

여기에 이미지 설명 입력

...하지만 그것이 정말 올바른 지점인지는 모르겠습니다. 그렇지 않습니까? 검색해야하는 설정 파일의 정확한 이름은 무엇입니까?

최신 정보

나는 Gabriele의 지시를 따랐고, 다음을 얻었습니다.

여기에 이미지 설명 입력

"Android Studio의 SDK 사용"을 선택했습니다.

그런 다음 내 프로젝트를 다시 빌드하려고 할 때 " Error : Execution failed for task ': app : preBuild'. target android-19를 찾지 못했습니다. C : \ Users \ clay \ AppData \ Local \ Android \ android-studio1 \ sdk "

업데이트 2

그런 다음 SDK 관리자를 열고 누락 / 오래된 항목을 설치하고 다시 빌드를 시도했습니다.

오류가 발생했습니다. " Gradle 프로젝트 'Platypus'를 새로 고치지 못했습니다. 오류 : 원인 : 대상 android-19를 찾지 못했습니다. C : \ users \ clay \ AppData \ Local \ Android \ android-studio1 \ sdk Install missing platform and sync project

메시지의 " Install missing platform and sync project "부분은 링크입니다. 나는 그것을 클릭하고 라이센스 계약에 동의했습니다.

완료되면 다음과 유사한 메시지와 함께 빌드가 다시 실패했습니다. " ... 빌드 도구 버전 19.1.0을 찾지 못했습니다. 빌드 도구 19.1.0 설치 및 프로젝트 동기화 "

다시 말하지만 " install ... "재즈는 링크였습니다. 나는 그것을 클릭하고, 수락하고, 설치했다 ...

다음 문제는 " 오류 : 프로젝트가 지원되지 않는 Android Gradle 플러그인 버전 (0.11.2)을 사용하고 있습니다. 플러그인 버전 수정 및 프로젝트 다시 가져 오기 "입니다.

" Never Cry Wolf "에서 현명한 노인의 조언에 따라 "플러그인 버전 수정 및 프로젝트 다시 가져 오기"를 클릭하여 끈기있게 노력했습니다.

어느 시점에서 마침내 성공적인 빌드를 얻었습니다.

업데이트 3

그런 다음 프로젝트를 실행했는데 실행중인 것 같았지만 (그렇다고 말했고 빨간색 사각형이 보였습니다) 에뮬레이터가 나타나지 않았습니다.

AVD Manager를 열었고 장치에 경고 아이콘 (수리 가능)이 있습니다. "복구"버튼을 클릭했습니다. 작동하는 것 같았습니다-경고 아이콘이 사라졌습니다.

그러나 나는 이것을 얻었다.

여기에 이미지 설명 입력

실행> 앱 디버그 ...시 여전히 에뮬레이터가 표시되지 않습니다.

처음 실행했을 때 (Droidio 0.5 * ~ 0.61 사용시) 다음과 같이 표시되었습니다.

여기에 이미지 설명 입력

... 그리고 에뮬레이터는 결국 나타날 것입니다. 이후에 앱을 실행하면 장치가 상단 ( "실행중인 장치 선택"아래)에 나열됩니다.하지만 더 이상은 아닙니다. 이후 앱을 실행하더라도 위의 비명 샷에 표시된 것처럼 하단에만 표시됩니다. ...

I reckon I should try "re-creating the AVD's weird, malformed config.ini" but don't savvy just what steps to take to accomplish that.


I used a method to trick the Android Studio to import settings from previous one without exporting the settings and it worked.

Just go to your previous .AndroidStudio\config folder, copy and paste them all to the new one (in my scenario I updated from 1.1 to 1.2 beta) .AndroidStudioPreview1.2

(For preventing any failure, please make a Rar file of your original config, also, after it works, export it so you can import it if you need it)


UPDATED 02/05/2016

If you are using AndroidStudio 2.1 you will find these folders:

  • in Windows should be in c:\user\yourname\.AndroidStudio2.1
  • in Linux should be in /home/yourname/.AndroidStudio2.1
  • in Mac should be in ~/Library/Preferences/.AndroidStudio2.1

If you are using AndroidStudio 2.0 you will find these folders:

  • in Windows should be in c:\user\yourname\.AndroidStudio2.0
  • in Linux should be in /home/yourname/.AndroidStudio2.0
  • in Mac should be in ~/Library/Preferences/.AndroidStudio2.0

If you are using AndroidStudio 1.5 you will find these folders:

  • in Windows should be in c:\user\yourname\.AndroidStudio1.5
  • in Linux should be in /home/yourname/.AndroidStudio1.5
  • in Mac should be in ~/Library/Preferences/.AndroidStudio1.5

If you are using .AndroidStudioPreview 1.4 you will find these folders:

  • in Windows should be in c:\user\yourname\.AndroidStudioPreview1.4
  • in Linux should be in /home/yourname/.AndroidStudioPreview1.4
  • in Mac should be in ~/Library/Preferences/.AndroidStudioPreview1.4

If you are using AndroidStudio 1.3 you will find these folders:

  • in Windows should be in c:\user\yourname\.AndroidStudio1.3
  • in Linux should be in /home/yourname/.AndroidStudio1.3
  • in Mac should be in ~/Library/Preferences/.AndroidStudio1.3

Your setting (with a Preview version):

  • in Windows should be in c:\user\yourname\.AndroidStudioPreview
  • in Linux should be in /home/yourname/.AndroidStudioPreview
  • in Mac should be in ~/Library/Preferences/AndroidStudioPreview

Starting with Android Studio 0.8.0 (Beta) its now

/home/{username}/.AndroidStudioBeta

for a *nix environment

UPDATE:

Since Android Studio is now out of beta the settings can now be found in:

/home/{username}/.AndroidStudio

Mac Sierra에서 Android 스튜디오 2.3

/Users/[username]/Library/Preferences/AndroidStudio2.3/

내 Mac에서 Android Studio 2.1을 사용하는 경우 디렉토리는

~/Library/Preferences/AndroidStudio2.1/

즉, 숨겨진 디렉토리가 아닙니다.


* nix 환경에서는 아마도 다음 위치에있을 것입니다. /home/[username]/.AndroidStudioPreview


나는 이와 비슷한 문제가 있었다. 나는 그것에 대한 다른 해결책을 찾았습니다. https://stackoverflow.com/a/33021782/4747587

참고 URL : https://stackoverflow.com/questions/24458923/from-where-do-i-import-settings-from-previous-version-of-android-studio

반응형