Serious problems in Configuring Android SDK with Eclipse

后端 未结 6 1731
感动是毒
感动是毒 2021-01-13 01:33

I am having serious problems in Configuring ADT with Eclipse. I am using Windows 7 Home Premium version.

The Eclipse (64 bit) that I am using is:

Ecl         


        
相关标签:
6条回答
  • 2021-01-13 02:05

    Remember the path where you install the android sdk and provide the correct location at window>preferences>android. On my windows 7 system the location is C:\Program Files (x86)\Android\android-sdk. After you provide location in preferences, click apply.

    0 讨论(0)
  • 2021-01-13 02:06

    I had this too and just solved it. For me, it turned out that I didn't have all the libraries like the tools package.

    Other things to keep in mind that helped me overcome related errors:

    1) When giving urls from where to download, if the https doesn't work, try http
    2) Run your eclipse as administrator if u r running it from Windows 7 - that will help you avoid permissions problems.
    
    0 讨论(0)
  • 2021-01-13 02:13

    Try installing the Android SDK separately first. Then get Eclipse configured appropriately. You might need to run the SDK installer as an administrator in order to have some permissions set up appropriately.

    0 讨论(0)
  • 2021-01-13 02:14

    In the last time I face all the time with such strange errors. The solution in these cases usually is the following.

    I guess that you use JDK 7. Android SDK is not compatible with JDK 7. You have to use JDK 6 or JDK 5 (but 5 is too old). Am I right?

    0 讨论(0)
  • 2021-01-13 02:15

    Have you tried downloading ad installing the Android SDK manually, then pointing Eclipse to that location? You will need to run "SDK Manager.exe" to download at least one platform...

    Also... Make sure you don't have any spaces in the path to the Android SDK and Eclipse or you might get strange errors.

    0 讨论(0)
  • 2021-01-13 02:16

    Problem solved after 1.5 days of work. This is how:

    When you get the error:

    [2012-01-02 14:29:37 - DDMS] DDMS files not found:
    C:\My_Workspace\eclipse-SDK-3.7.1-win32-x86_64\eclipse\platform-tools\adb.exe
    C:\My_Workspace\eclipse-SDK-3.7.1-win32-x86_64\eclipse\tools\hprof-conv.exe 
    C:\My_Workspace\eclipse-SDK-3.7.1-win32-x86_64\eclipse\tools\traceview.bat
    
    [2012-01-02 14:30:47 - DDMS] DDMS files not found:
    C:\My_Workspace\Android_SDK\platform-tools\adb.exe
    C:\My_Workspace\Android_SDK\tools\hprof-conv.exe
    C:\My_Workspace\Android_SDK\tools\traceview.bat
    

    go to the site: http://developer.android.com/sdk/index.html and download, install;
    installer_r16-windows.exe

    After the installation, you will still see some errors like:

    Fetching
    https:// dl-ssl.google.com/android/repository/addons_list-1.xml Failed
    to fetch URL
    https:// dl-ssl.google.com/android/repository/addons_list-1.xml,
    reason: peer not authenticated Fetched Add-ons List successfully
    Fetching URL:
    https:// dl-ssl.google.com/android/repository/repository-5.xml Failed
    to fetch URL
    https:// dl-ssl.google.com/android/repository/repository-5.xml, reason:
    peer not authenticated Done loading packages. Fetching URL:
    https:// dl-ssl.google.com/android/repository/repository-5.xml Failed
    to fetch URL
    https:// dl-ssl.google.com/android/repository/repository-5.xml, reason:
    peer not authenticated
    

    The problem is not so evident from the error messages. We figured that, the HTTPS is actually causing the problem. So, start

    Android SDK Manager->Tools->Options and now CHECK the box that says:
    force https://... sources to be fetched using http://

    and then click Packages->Reload.

    Everything will be installed as your wish! Now run Eclipse->Window->Preferences->Android and set the location of the newly installed Android SDK (i.e. the location of "android-sdk" folder). And you are ready to go.

    1.5 days wasted for this.

    0 讨论(0)
提交回复
热议问题