zoukankan      html  css  js  c++  java
  • Troubles in Building Android Source Code

    Some Troubles or problems you may encounter while you setup the Android source code build environment on Ubutun 12.4.4

    1. Install Sun-jdk1.6

    prompt:

    $ sudo apt-get install sun-java6-jdk
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package sun-java6-jdk is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    
    E: Package 'sun-java6-jdk' has no installation candidate

    Soltuion:

    reference to this blog, especially the last part:

    1.Download jdk-6u38-linux-x64.bin
    http://www.oracle.com/technetwork/java/javase/downloads/jdk6u38-downloads-1877406.html
     
    2. 設為可執行檔
    chmod +x jdk-6u38-linux-x64.bin
    3. 解開
    ./jdk-6u32-linux-x64.bin
    4.建立jvm資料夾
    sudo mkdir /usr/lib/jvm
    5.移至jvm資料夾
    sudo mv jdk1.6.0_38 /usr/lib/jvm/jdk1.6.0_38
    6.設定環境變數吧(還是替換)
    sudo update-alternatives –-install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_38/bin/javac 1
    sudo update-alternatives –-install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_38/bin/java 1
    sudo update-alternatives –-install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_38/bin/javaws 1
     
    sudo update-alternatives –-config javac

    sudo update-alternatives –-config javaws
    sudo update-alternatives –-config java

  • 相关阅读:
    UE4物理笔记
    lambda+mutable配合move实现单函数多程序域
    UE导航系统详
    cpp智能指针
    [转载]新手应该如何学习网站分析
    webpack 单独打包指定JS文件
    vue-cli axios ie9 问题
    [分享] 通过修改CSS自定义chrome滚动条样式
    日期格式化转换方法
    vue 路劲
  • 原文地址:https://www.cnblogs.com/rainduck/p/3569361.html
Copyright © 2011-2022 走看看