• Android Studio安装波折


      临近毕业,目前大三后半学期,总想着该朝哪一个方向发展,由于本人是学习java语言的,所以在javaweb和Android之间犹豫不决,终于于今日决定疯狂学习Android。然后就从网上下载了Android Studio来安装,为什么选择了这个而不是eclipse呢,因为我觉得Android Studio作为Android最大的支持商google的亲儿子日后必火,虽然目前来看并不好。

      然而在安装过程中,出现了千奇百怪的问题。本人与大家一起分享,也为同我一样的新手出现同样的问题指南。

      首先Android Studio下载地址为:https://dl.google.com/dl/android/studio/install/1.0.0/android-studio-bundle-135.1629389.exe

      这样一路下载下来并没有出现什么大的问题,一路平平安安的就下载完了。但是下载完成之后出现了第一个问题。

      第一个问题:No JVM installation found。

      

      这是表明你没有安装64位虚拟机,我的计算机是64位的下载的Android Studio也是X64的所以提示我没有64位JVM。

      其实我之前是装有jdk的。但可能是我装的是32位jdk所以不能识别

      所以只能从甲骨文的官网重新下载了一个jdk这里提供甲骨文1.8_40的下载地址:http://download.oracle.com/otn-pub/java/jdk/8u40-b26/jdk-8u40-windows-x64.exe

      第二个问题:The following SDK components were not installed: build-tools-21.1.1, source-21, sys-img-x86-addon-google_apis-google-21, extra-android-m2repository, android-21, extra-google-m2repository, addon-google_apis-google-21, tools, platform-tools

      这是说没有办法安装sdk

      这个问题很蛋疼的问题,由于工信部对谷歌的封锁我们没办法访问sdk的更新地址所以就不能更新过去

      我从网上查到的方法是

    ——————————————————————————我是分割线————————————————————————

      

    直接到解压目录(压缩包)中找到下面目录的文件,打开并在最后一行回车换行后加入 :

    disable.android.first.run=true

    然后保存。

    分割线中的内容来自百度百科,附地址:http://jingyan.baidu.com/article/b0b63dbfd0948c4a483070ea.html

     ————————————————————————我是分割线——————————————————————————

    其实我们上面只是延迟了它的加载  并没有阻挡SDK没有安装这个事实的延续,所以安装完成之后就会有这个东东

    点击进入之后就是我们又要面对的问题 ,怎么安装sdk在这之前先暂停

    在百度上下载一个Android SDK进行安装

    安装完成之后同样需要更新  

    在此之前先去C:WindowsSystem32driversetc里面的hosts这个文件复制到其他地方用记事本打开然后在末尾加上

    64.233.167.104 dl.google.com
    64.233.167.104 dl-ssl.google.com
    

      这两行

    替换原来的hosts(之所以先复制出来是因为需要管理员权限才能操作hosts这样复制回去的时候点继续就会自动请求管理员权限)

    打开 安装目录下Android SDK Manager.exe

    就更新完成了   

    在上面的红色error中单击,系统会自动检测到SDK的位置由于已经更新完成一路next就安装完成了

    --------------------------------------------------------------------------------------------------------------------------------------

    假如依然不能完成,那么只能手动下载sdk了的各个组件了,这里提供下载地址使用迅雷下载等工具可以完成下载,因为迅雷这些下载工具不一定是从源地址下载的所以把文件一个个下载下来解压到对应目录,再指向这个目录即可.这种方式比较累,但是很有效,不会翻墙的童鞋们就只能这样做了,这里提供各个组件的下载地址:

    (1)Android SDK (Android SDK主安装包,包含SDK Manager、AVD Manager、工具包tools,释放后的根文件夹为android-sdk-windows):
    revision 22.2.1
    http://dl.google.com/android/android-sdk_r22.2.1-windows.zip
    http://dl.google.com/android/installer_r22.2.1-windows.exe
    http://dl.google.com/android/android-sdk_r22.2.1-macosx.zip
    http://dl.google.com/android/android-sdk_r22.2.1-linux.tgz
    revision 22.3
    http://dl.google.com/android/android-sdk_r22.3-windows.zip
    http://dl.google.com/android/installer_r22.3-windows.exe
    http://dl.google.com/android/android-sdk_r22.3-macosx.zip
    http://dl.google.com/android/android-sdk_r22.3-linux.tgz
    (2)tools (Android SDK的工具包,释放到android-sdk-windows下,文件夹tools覆盖android-sdk-windows/tools)
    revision 22.2.1
    https://dl-ssl.google.com/android/repository/tools_r22.2.1-windows.zip
    https://dl-ssl.google.com/android/repository/tools_r22.2.1-linux.zip
    https://dl-ssl.google.com/android/repository/tools_r22.2.1-macosx.zip
    revision 22.3
    https://dl-ssl.google.com/android/repository/tools_r22.3-windows.zip
    https://dl-ssl.google.com/android/repository/tools_r22.3-linux.zip
    https://dl-ssl.google.com/android/repository/tools_r22.3-macosx.zip
    (3)platform-tools (Android平台工具包,释放到android-sdk-windows下,产生文件夹platform-tools)
    revision 17
    https://dl-ssl.google.com/android/repository/platform-tools_r17-windows.zip
    https://dl-ssl.google.com/android/repository/platform-tools_r17-linux.zip
    https://dl-ssl.google.com/android/repository/platform-tools_r17-macosx.zip
    revision 18.0.1
    https://dl-ssl.google.com/android/repository/platform-tools_r18.0.1-windows.zip
    https://dl-ssl.google.com/android/repository/platform-tools_r18.0.1-linux.zip
    https://dl-ssl.google.com/android/repository/platform-tools_r18.0.1-macosx.zip
    revision 19
    https://dl-ssl.google.com/android/repository/platform-tools_r19-windows.zip
    https://dl-ssl.google.com/android/repository/platform-tools_r19-linux.zip
    https://dl-ssl.google.com/android/repository/platform-tools_r19-macosx.zip
    (4)build-tools (释放到android-sdk-windows下,产生文件夹build-tools,各版本都可能用到)
    revision 17
    https://dl-ssl.google.com/android/repository/build-tools_r17-windows.zip
    https://dl-ssl.google.com/android/repository/build-tools_r17-linux.zip
    https://dl-ssl.google.com/android/repository/build-tools_r17-macosx.zip
    revision 18.0.1
    https://dl-ssl.google.com/android/repository/build-tools_r18.0.1-windows.zip
    https://dl-ssl.google.com/android/repository/build-tools_r18.0.1-linux.zip
    https://dl-ssl.google.com/android/repository/build-tools_r18.0.1-macosx.zip
    revision 18.1
    https://dl-ssl.google.com/android/repository/build-tools_r18.1-windows.zip
    https://dl-ssl.google.com/android/repository/build-tools_r18.1-linux.zip
    https://dl-ssl.google.com/android/repository/build-tools_r18.1-macosx.zip
    revision 18.1.1
    https://dl-ssl.google.com/android/repository/build-tools_r18.1.1-windows.zip
    https://dl-ssl.google.com/android/repository/build-tools_r18.1.1-linux.zip
    https://dl-ssl.google.com/android/repository/build-tools_r18.1.1-macosx.zip
    revision 19
    https://dl-ssl.google.com/android/repository/build-tools_r19-windows.zip
    https://dl-ssl.google.com/android/repository/build-tools_r19-linux.zip
    https://dl-ssl.google.com/android/repository/build-tools_r19-macosx.zip
    (5)platforms (各种版本的Android平台,释放到android-sdk-windows/platforms下)
    Android 1.1 (API 2):
    https://dl-ssl.google.com/android/repository/android-1.1_r1-windows.zip
    https://dl-ssl.google.com/android/repository/android-1.1_r1-linux.zip
    https://dl-ssl.google.com/android/repository/android-1.1_r1-macosx.zip
    Android 1.5 (API 3):
    https://dl-ssl.google.com/android/repository/android-1.5_r04-windows.zip
    https://dl-ssl.google.com/android/repository/android-1.5_r04-linux.zip
    https://dl-ssl.google.com/android/repository/android-1.5_r04-macosx.zip
    Android 1.6 (API 4):
    https://dl-ssl.google.com/android/repository/android-1.6_r03-windows.zip
    https://dl-ssl.google.com/android/repository/android-1.6_r03-linux.zip
    https://dl-ssl.google.com/android/repository/android-1.6_r03-macosx.zip
    Android 2.0 (API 5) Obsolete:
    https://dl-ssl.google.com/android/repository/android-2.0_r01-windows.zip
    https://dl-ssl.google.com/android/repository/android-2.0_r01-linux.zip
    https://dl-ssl.google.com/android/repository/android-2.0_r01-macosx.zip
    Android 2.0.1 (API 6) Obsolete:
    https://dl-ssl.google.com/android/repository/android-2.0.1_r01-windows.zip
    https://dl-ssl.google.com/android/repository/android-2.0.1_r01-linux.zip
    https://dl-ssl.google.com/android/repository/android-2.0.1_r01-macosx.zip
    Android 2.1 (API 7):
    https://dl-ssl.google.com/android/repository/android-2.1_r03-linux.zip
    Android 2.2 (API 8):
    https://dl-ssl.google.com/android/repository/android-2.2_r03-linux.zip
    Android 2.3 (API 9) Obsolete:
    https://dl-ssl.google.com/android/repository/android-2.3.1_r02-linux.zip
    Android 2.3.3 (API 10):
    https://dl-ssl.google.com/android/repository/android-2.3.3_r02-linux.zip
    Android 3.0 (API 11):
    https://dl-ssl.google.com/android/repository/android-3.0_r02-linux.zip
    Android 3.1 (API 12):
    https://dl-ssl.google.com/android/repository/android-3.1_r03-linux.zip
    Android 3.2 (API 13):
    https://dl-ssl.google.com/android/repository/android-3.2_r01-linux.zip
    Android 4.0 (API 14):
    https://dl-ssl.google.com/android/repository/android-14_r03.zip
    Android 4.0.3 (API 15):
    https://dl-ssl.google.com/android/repository/android-15_r03.zip
    Android 4.1.2 (API 16):
    https://dl-ssl.google.com/android/repository/android-16_r04.zip
    Android 4.2.2 (API 17):
    https://dl-ssl.google.com/android/repository/android-17_r02.zip
    Android 4.3 (API 18):
    https://dl-ssl.google.com/android/repository/android-18_r02.zip
    Android 4.4 (API 19):
    https://dl-ssl.google.com/android/repository/android-19_r01.zip
    (6)system-images (Android系统镜像,释放到android-sdk-windows/system-images/android-xx下[xx对应api版本数字])
    system-images/android-10
    http://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-10_r02.zip
    system-images/android-14
    https://dl-ssl.google.com/android/repository/sysimg_armv7a-14_r02.zip
    system-images/android-15
    https://dl-ssl.google.com/android/repository/sysimg_armv7a-15_r02.zip
    https://dl-ssl.google.com/android/repository/sys-img/mips/sysimg_mips-15_r01.zip
    https://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-15_r01.zip
    system-images/android-16
    https://dl-ssl.google.com/android/repository/sysimg_armv7a-16_r03.zip
    https://dl-ssl.google.com/android/repository/sys-img/mips/sysimg_mips-16_r04.zip
    https://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-16_r01.zip
    system-images/android-17
    http://dl-ssl.google.com/android/repository/sysimg_armv7a-17_r02.zip
    http://dl-ssl.google.com/android/repository/sys-img/mips/sysimg_mips-17_r01.zip
    http://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-17_r01.zip
    system-images/android-18
    http://dl-ssl.google.com/android/repository/sysimg_armv7a-18_r02.zip
    http://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-18_r01.zip
    system-images/android-19
    http://dl-ssl.google.com/android/repository/sysimg_armv7a-19_r01.zip
    (7)docs (文档,释放到android-sdk-windows下,会产生文件夹docs)
    https://dl-ssl.google.com/android/repository/docs-16_r03.zip
    https://dl-ssl.google.com/android/repository/docs-17_r02.zip
    https://dl-ssl.google.com/android/repository/docs-18_r01.zip
    https://dl-ssl.google.com/android/repository/docs-19_r01.zip
    (8)samples (应用实例,释放到android-sdk-windows/samples下)
    https://dl-ssl.google.com/android/repository/samples-2.1_r01-linux.zip
    https://dl-ssl.google.com/android/repository/samples-2.2_r01-linux.zip
    https://dl-ssl.google.com/android/repository/samples-2.3_r01-linux.zip
    https://dl-ssl.google.com/android/repository/samples-2.3.3_r01-linux.zip
    https://dl-ssl.google.com/android/repository/samples-3.0_r01-linux.zip
    https://dl-ssl.google.com/android/repository/samples-3.1_r01-linux.zip
    https://dl-ssl.google.com/android/repository/samples-3.2_r01-linux.zip
    https://dl-ssl.google.com/android/repository/samples-14_r02.zip
    https://dl-ssl.google.com/android/repository/samples-15_r02.zip
    https://dl-ssl.google.com/android/repository/samples-16_r01.zip
    https://dl-ssl.google.com/android/repository/samples-17_r01.zip
    https://dl-ssl.google.com/android/repository/samples-18_r01.zip
    https://dl-ssl.google.com/android/repository/samples-19_r01.zip
    (9)sources (Android SDK源程序,释放到android-sdk-windows/sources/android-xx下[xx对应api版本数字])
    https://dl-ssl.google.com/android/repository/sources-14_r01.zip
    https://dl-ssl.google.com/android/repository/sources-15_r02.zip
    https://dl-ssl.google.com/android/repository/sources-16_r02.zip
    https://dl-ssl.google.com/android/repository/sources-17_r01.zip
    https://dl-ssl.google.com/android/repository/sources-18_r01.zip
    https://dl-ssl.google.com/android/repository/sources-19_r01.zip
    (10)extras (扩展应用,释放到android-sdk-windows/extras下)
    Android Support Repository(extras/android/m2repository)
    https://dl-ssl.google.com/android/repository/android_m2repository_r03.zip
    Android Support Library(extras/android/support)
    https://dl-ssl.google.com/android/repository/support_r19.zip
    Google AdMob Ads SDK(extras/google/admob_ads_sdk)
    https://dl-ssl.google.com/googleadmobadssdk/googleadmobadssdkandroid-6.4.1.zip
    Google Analytics App Tracking SDK(extras/google/analytics_sdk_v2)
    https://dl.google.com/gaformobileapps/GoogleAnalyticsAndroid_1.4.2.zip
    https://dl.google.com/gaformobileapps/GoogleAnalyticsAndroid_2.0beta4.zip
    https://dl.google.com/gaformobileapps/GoogleAnalyticsAndroid_2.0beta4.1.zip
    https://dl-ssl.google.com/android/repository/GoogleAnalyticsAndroid_2.0beta4.1.zip
    https://dl.google.com/gaformobileapps/GoogleAnalyticsAndroid_2.0beta5.zip
    https://dl.google.com/gaformobileapps/GoogleAnalyticsAndroid_2.0beta5.zip
    [Deprecated]Google Cloud Messaging for Android Library(extras/google/gcm)
    https://dl-ssl.google.com/android/repository/gcm_r03.zip
    Google Play services for Froyo
    https://dl-ssl.google.com/android/repository/google_play_services_3265130_r12.zip
    Google Play services(extras/google/google_play_services)
    https://dl-ssl.google.com/android/repository/google_play_services_4030530_r13.zip
    Google Repository(extras/google/m2repository)
    https://dl-ssl.google.com/android/repository/google_m2repository_r04.zip
    Google Play APK Expansion Library(extras/google/play_apk_expansion)
    https://dl-ssl.google.com/android/repository/market_apk_expansion-r03.zip
    Google Play Billing Library(extras/google/play_billing)
    https://dl-ssl.google.com/android/repository/play_billing_r05.zip
    Google Play Licensing Library(extras/google/play_licensing)
    https://dl-ssl.google.com/android/repository/market_licensing-r02.zip
    Google USB Driver(extras/usb_driver)
    https://dl-ssl.google.com/android/repository/usb_driver_r08-windows.zip
    Google Web Driver(extras/google/webdriver)
    https://dl-ssl.google.com/android/repository/webdriver_r02.zip
    Intel x86 Emulator Accelerator(HAXM)(extras/intel/Hardware_Accelerated_Execution_Manager)
    https://download-software.intel.com/sites/landingpage/android/extra_intel_haxm-windows_r02.zip
    https://download-software.intel.com/sites/landingpage/android/extra_intel_haxm-macosx_r02.zip
    https://dl-ssl.google.com/android/repository/extras/intel/haxm-windows_r03.zip
    https://dl-ssl.google.com/android/repository/extras/intel/haxm-macosx_r03.zip
    (11)add-ons (google手机api,释放到android-sdk-windows/add-ons/)
    addon-google_apis-google-xx[xx对应api版本数字]
    https://dl-ssl.google.com/android/repository/google_apis-3-r03.zip
    https://dl-ssl.google.com/android/repository/google_apis-4_r02.zip
    https://dl-ssl.google.com/android/repository/google_apis-5_r01.zip
    https://dl-ssl.google.com/android/repository/google_apis-6_r01.zip
    https://dl-ssl.google.com/android/repository/google_apis-7_r01.zip
    https://dl-ssl.google.com/android/repository/google_apis-8_r02.zip
    https://dl-ssl.google.com/android/repository/google_apis-9_r02.zip
    https://dl-ssl.google.com/android/repository/google_apis-10_r02.zip
    https://dl-ssl.google.com/android/repository/google_apis-11_r01.zip
    https://dl-ssl.google.com/android/repository/google_apis-12_r01.zip
    https://dl-ssl.google.com/android/repository/google_apis-13_r01.zip
    https://dl-ssl.google.com/android/repository/google_apis-14_r02.zip
    https://dl-ssl.google.com/android/repository/google_apis-15_r02.zip
    https://dl-ssl.google.com/android/repository/google_apis-16_r03.zip
    https://dl-ssl.google.com/android/repository/google_apis-17_r03.zip
    https://dl-ssl.google.com/android/repository/google_apis-18_r03.zip
    https://dl-ssl.google.com/android/repository/google_apis-19_r01.zip
    https://dl-ssl.google.com/android/repository/google_tv-12_r02.zip
    https://dl-ssl.google.com/android/repository/google_tv-13_r01.zip
    addon-intel_atom_x86_system_image-intel_corporation-xx
    https://software.intel.com/sites/landingpage/android/addon_intel_sysimg_2.3.7_api-10.zip
    addon-dual_screen_apis-kyocera_corporation-xx (Dual Screen api)
    http://dl.kyocera-wireless.com/echobykyocera.com/ECHO-SDK-v1-03.zip
    http://dl.kyocera-wireless.com/echobykyocera.com/ECHO-SDK-v2-00.zip
    addon-sony_xperia_extensions_edk_2_0-sony_mobile_communications_ab-xx
    http://dl-developer.sonymobile.com/edk/android/edk_2.0_ver2.zip
    addon-real3d-lge-xx
    http://developer.lgmobile.com/sdk/android/Real3D_addon_api-8_r01.zip
    http://developer.lgmobile.com/sdk/android/Real3D_SDK_api-10_r02.zip
    http://developer.lgmobile.com/sdk/android/Real3D_SDK_api-14_r01.zip
    addon-htc_opensense_sdk-htc-15
    http://dl.htcdev.com/sdk/zip/htc_opensense_sdk.zip
    addon-htc_opensense_apis-16
    http://dl.htcdev.com/sdk/zip/htc_opensense_apis.zip
    说明: 以上第(3)点及以后,可以将安装包放在文件夹android-sdk-windows/temp下,通过SDK Manager自动安装释放到相应位置.
    (12)ADT Plugin for Eclipse
    http://dl.google.com/android/ADT-22.2.1.zip
    http://dl.google.com/android/ADT-22.3.0.zip
    (13)Android Developer Tools(基于Eclipse的Android开发环境,已包含Eclipse与ADT).
    revision 22.2.1
    http://dl.google.com/android/adt/adt-bundle-windows-x86-20130917.zip
    http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20130917.zip
    http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20130917.zip
    http://dl.google.com/android/adt/adt-bundle-linux-x86-20130917.zip
    http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20130917.zip
    revision 22.3
    http://dl.google.com/android/adt/adt-bundle-windows-x86-20131030.zip
    http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20131030.zip
    http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20131030.zip
    http://dl.google.com/android/adt/adt-bundle-linux-x86-20131030.zip
    http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20131030.zip
    (14)Android NDK
    revision 9b
    http://dl.google.com/android/ndk/android-ndk-r9b-windows-x86.zip
    http://dl.google.com/android/ndk/android-ndk-r9b-windows-x86-legacy-toolchains.zip
    http://dl.google.com/android/ndk/android-ndk-r9b-windows-x86_64.zip
    http://dl.google.com/android/ndk/android-ndk-r9b-windows-x86_64-legacy-toolchains.zip
    http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86.tar.bz2
    http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86-legacy-toolchains.tar.bz2
    http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86_64.tar.bz2
    http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86_64-legacy-toolchains.tar.bz2
    http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86.tar.bz2
    http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86-legacy-toolchains.tar.bz2
    http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64.tar.bz2
    http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64-legacy-toolchains.tar.bz2
    Android SDK 官方下载页面
    http://developer.android.com/sdk/index.html
    Android Open Source
    https://android.googlesource.com/
    https://developers.google.com/android/nexus/images
  • 相关阅读:
    《党务管理信息系统的设计与实现》论文笔记(八)
    《高校党务信息系统的研究与分析》论文笔记(七)
    《用分布式多层应用技术开发党务管理信息系统》论文笔记(六)
    《二级学院《党务管理信息系统》的使用管理》论文笔记(五)
    《某学院党务管理信息系统的研究与设计》论文笔记(四)
    《数据结构课程现代教学中基于Web题库管理系统设计与实现》论文笔记(十)
    《课程管理系统的设计与实现》论文笔记(九)
    《基于微信平台的课程管理系统设计》论文笔记(八)
    《基于SSH框架的课程管理系统的设计与实现》论文笔记(七)
    《基于Android平台的大学生课程计划管理系统》论文笔记(六)
  • 原文地址:https://www.cnblogs.com/lingzhishitu/p/4349082.html
Copyright © 2020-2023  润新知