Programing

Android SDK 업데이트 :“폴더를 이동하지 못했습니다.”

lottogame 2020. 10. 31. 09:13
반응형

Android SDK 업데이트 :“폴더를 이동하지 못했습니다.”


내 Android SDK를 업데이트하는 동안이 특정 패키지를 설치하려고 할 때이 오류가 발생합니다.

여기에 이미지 설명 입력

이 문제를 어떻게 해결합니까?


이것은 내 Windows SDK에서 가끔 발생 합니다 (바이러스 백신이나 유사한 프로그램이 실행되고 있지 않은 경우에도 SDK-Manager를 관리자 권한으로 실행하는 등) .

이 경우 도구를 직접 업데이트합니다. 즉, 오류 후 SDK-Manager를 닫고 ANDROID_SDK\temp폴더를 엽니 다 . 이름이 tools_R16.zip있거나 유사한 zip이 있어야합니다 (정확한 이름을 기억하지 마십시오) . 압축을 풉니 다. tools폴더로 끝나야 합니다. 이 폴더의 모든 파일을 ANDROID_SDK\tools. 요청하면 덮어 씁니다. 그리고 무언가 폭발하는 경우를 대비하여 미리 SDK 도구 폴더를 백업하십시오.

그 후 SDK-Manager를 다시 시작하십시오. 도구 버전을 업데이트해야합니다.


문제는 Eclipse 또는 SDK Manager 자체가 폴더를 잠그는 것 같습니다. 도구 폴더에서 android.bat를 실행하면 트릭을 수행 할 수 있습니다.


Android Studio에서 SDK Manager를 시작한 경우 Android Studio를 닫으면됩니다.

SDK Manager는 별도의 프로그램이 아닌 Android Studio의 일부인 모달 대화 상자라고 가정했습니다.


감사. 이것이 내가 수정 한 방법입니다.

이 경우 도구를 수동으로 업데이트했습니다. 즉, 오류가 발생한 후 SDK 관리자를 닫고 android-sdk-windows 폴더를 엽니 다. LockHunter를 사용하여 android-sdk-windows \ tools \ 폴더에 잠금을 유지하는 모든 프로그램의 잠금을 해제합니다. http://lockhunter.com/?ver=&vertype=pro&sm=main_window_64

android-sdk-windows \ tools 폴더의 이름을 먼저 tools_DELETEME로 변경하십시오. android-sdk-windows \ temp \ tools_r19-windows.zip이라는 zip 파일이 있어야합니다. 그 안에 도구 폴더가 보일 것입니다. 해당 도구 폴더를 android-sdk-windows \ tools에 복사합니다.

그런 다음 SDK 관리자를 다시 시작하십시오. 도구 버전을 업데이트해야합니다.


이클립스에서 SDK 관리자를 시작 하셨나요? 동일한 문제를 해결하고 직접 도구에서 SDK 관리자를 수동으로 열어 수정했습니다.


도구 / 소프트웨어를 설치할 때 SDK 관리자를 사용하십시오. 그러나 업데이트 할 때 사용하지 마십시오. 도구를 업데이트하려면 android-sdk-windows \ tools \ android.bat 파일에서 오른쪽 클릭-> 관리자 권한으로 실행하십시오. 특히 Windows Vista / 7 / 8에서는 항상 관리자 권한으로 명령을 실행하십시오. 그러면 대부분의 권한 문제 등이 해결됩니다.


내 해결책은 관리자 권한으로 Eclipse 내에서 시작하는 것이 었습니다.


잘 나는 윈도우 7에서 같은 문제가 있었다 ... 문제는 업데이트하는 동안 도구 폴더 (SDK 폴더 내부)의 이름을 바꾸려고 시도하고 해당 폴더는 현재 실행중인 "ADB"프로세스에서 사용된다는 것입니다 ...

따라서 해당 프로세스를 중지 / 종료 할 때까지 업데이트를 원활하게 수행 할 수 없습니다.

temp에서 도구 폴더의 새 내용을 붙여 넣는 BTW 복사도 작동합니다 ...


Windows 7에서 "설치 실패 팝업"이 나타나면 adb (작업 관리자 ctrl + alt + del에서)라는 프로세스를 종료 한 다음 "예"를 누르면 항목이 설치됩니다.


android.bat 실행을 시도했는데 동일한 오류가 발생했습니다.

나를 위해 일한 것은 unlocker를 사용하여 \ tools 폴더의 잠금을 해제하는 것입니다.


탐색기를 포함한 다른 응용 프로그램에서 열거 나 사용중인 필수 파일 또는 폴더가 없는지 확인하십시오.


전에 읽은 사람들은 platform-tools 폴더의 복사본을 가져 와서 다른 위치에서 업데이트를 실행합니다. 이렇게하면 업데이트하려는 파일을 열지 않아도됩니다.

5 분 동안 바이러스 백신을 비활성화 할 수도 있습니다. o0o0.


Windows 7 및 Vista에서 Eclipse를 관리자로 실행하십시오.


내 문제는 Windows 7 보안이었습니다. 나는 C:\Program Files\Android전체 액세스 권한을 가진 모든 사람에게 보안을 개방하고 작동했습니다. 그런 다음 업데이트가 완료된 후 모든 사람을 제거했습니다.


도구 폴더 자체의 복사본을 만들어야했습니다 (동일한 디렉터리 트리 수준에 유지하므로 "tools"와 "tools-copy"가 모두 "android-sdk-windows"폴더에 있음). 그런 다음 해당 사본에서 Android.bat를 실행했습니다.

업데이트 후 도구 복사 폴더를 삭제하십시오.


오류 메시지는 Failed to rename directory C:\devtools\android-sdk\system-images\android-21\google_apis\x86 to C:\devtools\android-sdk\temp\SystemImagePackage.old01입니다. C : \ devtools \ android-sdk \ temp \ SystemImagePackage.old01 디렉토리를 손으로 삭제했고 (남은 것이 었습니까? 모르겠습니다) 계속 진행할 수있었습니다.


sdk를 업데이트하는 동안 발생한 동일한 오류입니다. 대상 폴더가 잠겨 있기 때문입니다 (액세스 권한이 거부 됨). "Ubuntu"에서 다음과 같이 해결할 수 있습니다.

ALT + F2를 누르고 'gksudo nautilus'를 입력 하고 도구 또는 추가 항목과 같은 대상 폴더로 이동하여 생성 및 삭제 권한을 부여 합니다. 그런 다음 업데이트하면 모든 것이 잘 작동합니다. :)


먼저 동일한 디렉토리 (android-sdk 또는 android-sdk-windows)에 도구 폴더의 복사본을 만든 다음 원래 도구 폴더를 삭제 한 다음 tools-copy 폴더를 두 번 클릭하여 android.bat 파일을 열어 sdk 관리자를 시작하고 도구.

도구 폴더가 삭제되지 않는 경우 잠금 해제 기 LockHunter 를 사용하여 폴더를 삭제 한 다음 android.bat를 열어 도구를 업데이트합니다.

도구를 성공적으로 설치 한 후 tools-copy 폴더를 삭제하십시오.

Eclipse 또는 Android Studio가 열려 있으면 닫습니다.

그것은 나를 위해 일했습니다 !!!


내 PC에서는 백그라운드에서 실행되는 monitor.exe로 인해 발생했습니다. 해당 프로세스를 종료하면 문제가 해결되었습니다.


studioprocess로 이동하여 작업 관리자에서 현재 실행 된 Android 스튜디오 창을 닫습니다 (따라서 닫히면 현재 활성 스튜디오 창이 없음). 그런 다음 Windows 탐색기에서 Android 스튜디오로 이동하여 studio64 / studio (32 비트 OS 인 경우)를 선택하고 마우스 오른쪽 버튼을 클릭하고 관리자 권한으로 실행을 선택합니다. 한 줄로 -Android Studio를 관리자로 실행 해야합니다 .여기에 이미지 설명 입력


이것이 내가 따라야 할 단계입니다.

  • 컴퓨터를 다시 시작하십시오.
  • 관리자 권한으로 "C : \ android \ androidStudio \ sdk \ tools \ android.bat"를 엽니 다.
  • 이제 설치 패키지가 정상적으로 실행됩니다.

나는 이것이 오래된 게시물이라는 것을 알고 있지만 문제에 대한 개인적인 해결책을 쓰고 싶습니다.

디렉터리 C : \ android-sdk \ tools의 이름을 C : \ android-sdk \ temp \ ToolPackage.old01로 이름을 바꾸지 못했습니다.

Obviously I have had the same issue and every time the Android tools needs to be updated it's a nightmare.

None of the solutions I found googling the net worked for me up now, but this is a vital job to maintain Android SDK updated. So I started to find an alternative working way to solve this issue and I found it finally.... at least... it works for me, even if it is a bit tricky.

The basic problem is that the android.bat batch file comes from the ~\tools\ folder and it's still in memory (running) while the same ~\tools\ folder needs to be updated (in our case, renamed).

The problem is that the android.bat runs java to launch swt.jar (the SDK tool), and it remains uselessly waiting for completion of this java program.

You can edit the android.bat and see the call in the latest row of this batch:

call "%java_exe% %REMOTE_DEBUG%" "-Dcom.android.sdkmanager.toolsdir=%tools_dir%" "-Dcom.android.sdkmanager.workdir=%work_dir%" -classpath "%jar_path%;%swt_path%\swt.jar" com.android.sdkmanager.Main %*

The problem is the "call" CMD command. It waits for the called external program completion.

But ther's another way to run external programs from a batch file: the "start" command. It launches an external program and terminates.

So I just replaced the "call" command with "start", so that after the change the latest row of my android.bat was:

start "" "%java_exe% %REMOTE_DEBUG%" "-Dcom.android.sdkmanager.toolsdir=%tools_dir%" "-Dcom.android.sdkmanager.workdir=%work_dir%" -classpath "%jar_path%;%swt_path%\swt.jar" com.android.sdkmanager.Main %*

Note: Keep the "" in between start and the application path. You can add text in those hyphens and this text will be the caption of the java.exe command window you will see after the changes. In my case I left the caption as an empty string but you can write there what you want.

After the changes, you can start the SDK and the android.bat will be no more waiting, leaving the SDK tool free to play (and rename the ~\tools\ folder without headaches).

Obviously, after updating the SDK tools, you have to redo the same changes in the new, updated android.bat batch file. This could be a bit unconfortable, but you'll have just to remember to make the changes before running the SDK tool and you'll have no other headaches while updating Android.


In Ubuntu following solved issue for me

  1. cd [tools/directory/path]
  2. sudo ./android

Solved this on my side by killing the adb.exe in Task Manager.


I just stopped the emulator, and problem was solved.

참고URL : https://stackoverflow.com/questions/8555131/updating-android-sdk-a-folder-failed-to-be-moved

반응형