Program Club

Android ADT 오류, dx.jar이 SDK 폴더에서로드되지 않았습니다.

proclub 2020. 11. 12. 20:31
반응형

Android ADT 오류, dx.jar이 SDK 폴더에서로드되지 않았습니다.


방금 Eclipse Galileo를 다운로드하고 ADT10을 설치하고이 가이드를 사용하여 phonegap 앱을 시도했습니다. http://www.phonegap.com/start 하지만 빌드하려고 할 때 마다이 오류가 발생합니다. 알 수없는 오류 : 빌드 할 수 없음 : 파일 dx.jar이 SDK 폴더에서로드되지 않았습니다!

이 포럼에 이미 몇 가지 질문 / 답변이 있다는 것을 알고 있지만 저에게 효과적이지 않았습니다.


이것은 최신 버전으로 불완전하거나 지저분한 업그레이드로 인해 {Android SDK dir}\platform-tools\lib\.

해결책:

최신 dx.jar 찾기 {Android SDK dir}\platforms\*

다음으로 복사하십시오.

{Android SDK dir}\platform-tools\lib\

eclipse를 다시 시작하면 clean프로젝트와 모든 것이 예상대로 작동합니다.

( platform-tools\lib디렉터리가 완전히 누락 된 경우 SDK 관리자를 사용하여 "Android SDK platform-tools"를 다시 설치해야합니다. 다시 설치 한 후 dx.jar이 거기에 있어야하므로 복사 할 필요가 없습니다.)

하위 디렉토리 dx.jar에서 찾을 수없는 경우 {Android SDK dir}\platforms\*SDK 관리자를 시작하고 Android 1.6 SDK를 설치해야합니다.

예를 들어 내 컴퓨터에서 최신 버전은 {Android SDK dir}\platforms\android-4\tools\lib\. (2012-01-22 Android SDK R15 현재 최신 버전을 찾지 못했습니다).

나는 반나절을 조사하고 그러한 사소한 버그의 해결책을 찾기 위해 낭비했기 때문에 이것이 누군가에게 유용하기를 바랍니다. :-(


업그레이드 후 platform-tools \ lib 폴더가 누락되었습니다 (내 이클립스가 열려 있음). 이클립스를 닫고 sdk 관리자 제거를 사용하여 "Android SDK 플랫폼 도구"를 설치합니다.


어제 Eclipse of Neon Release (4.6.0)에서 동일한 문제가 발생했습니다.

android-sdk 'build-tools'26.0.0과 관련된 호환 문제입니다.

간단한 솔루션 :

  • "build-tools"디렉토리에서 "26.0.0"삭제
  • 대신 "25.0.2"사용
  • 이클립스 다시 시작

기타 솔루션 :

  • 프로젝트의 project.properties에 다음을 추가하십시오.
    sdk.buildtools = 25.0.2

행운을 빕니다!


Mac OS 10.12.4에서 Eclipse Neon.2 및 Android SDK Build-tools + platform-tools 버전 26을 실행 중이었고 위의 답변 (허용 된 답변 포함) 중 어느 것도 저에게 효과가 없었습니다.

무슨 일을 했는지

  1. Eclipse 종료

  2. 폴더를 제거하고 <android-sdk>/build-tools/26.0.0Android SDK 관리자를 통해 빌드 도구의 (이전) 버전 25.0.3을 설치합니다.

  3. Eclipse를 다시 시작하십시오.


빌드 도구 25.0.0에서 26.0.0으로 업그레이드 한 이후 Eclipse에서이 문제가 발생했습니다.

project.properties 에 "sdk.buildtools = 25.0.0"을 추가 하면 다시 작동합니다.

내 project.properties :

target=android-23
sdk.buildtools=25.0.0
android.library.reference.1=../design

나에게도 발생했으며 win7로 변경하고 eclipse에 최신 ADT를 설치했기 때문에 발생했지만 이전 Android SDK를 사용했습니다. 마지막으로 Android SDK를 최신 버전으로 업데이트하여이 문제를 해결합니다.


나를 위해 eclipse는 SDK 관리자의 잘못된 위치를 찾고있었습니다. 이 문제를 해결하기 위해

  • 창 / 환경 설정 / Android / SDK 위치

참고 : SDK 관리자는 UI 상단 근처에서 사용중인 디렉토리를 알려줍니다.

Android 개발자 사이트 에서 ADT가 번들로 제공되는 새 버전의 eclipse를 설치 했지만 eclipse를 열었을 때 이전 SDK.exe 위치를보고있었습니다.

hth


I haven't seen this specific problem, but you may get better results with Eclipse Helios or Indigo. Galileo is getting old and is unlikely to be tested as much as the more recent Eclipse platforms.


sometimes you need just to restart Eclipse after the update, it worked for me to fix that error


Also, make sure that the version of the ADT is supported by the AndroidSDKTools. That fixed my problem. In the SDK Manager, File->Reload will lead to the latest revisions.


Try using Eclipse Indigo: http://www.eclipse.org/downloads/ and follow the instructions on how to install Android ADT from: http://developer.android.com/sdk/eclipse-adt.html


Windows 7 64 bit, Intel i7

This happened to me as well after I updated the SDK to be Jelly Bean compatible. The folder platform-tools\lib was gone. I also wasn't able to uninstall/reinstall the program-tools in the SDK manager at first. It gave me the error that a particular file in the android\temp folder was not there. I had to change the permissions on the android folder to allow every action, and that solved it.


Even after reinstalling "Android SDK platform-tools" in my UBuntu-16.04 LTS problem persisted. I am using Eclipse-Oxygen. Copying dx.jar from /build-tools/25.0.3/lib into /build-tools/26.0.0-preview/lib solved my problem.


Updating Android SDK platform-tools with the Android SDK Manager and restarting Eclipse did it for me


If you have updated the ADT tools and also SDK platform and you see the above error, restart Eclipse.


Unzip the updated Android SDK in your current SDK folder. This solved my problem.


It's work for me do this

Delete "26.0.0" in "build-tools" directory Use "25.0.2" instead Restart eclipse

참고URL : https://stackoverflow.com/questions/5228453/android-adt-error-dx-jar-was-not-loaded-from-the-sdk-folder

반응형