御世話になります。
AWS で ubuntu を利用して、android のビルドを立ち上げたいと思います。
目標はカスタムrom制作になります。
その中で以下のサイトをお手本にし、少しコマンドを工夫しながら、以下のようなコマンドを打ちました。
Ubuntu 16.04でAndroidをビルドする
//パッケージのアップデート
sudo apt-get update
//ビルドに必要なパッケージのインストール
sudo apt-get install -y openjdk-8-jdk
git-core gnupg flex bison gperf build-essential
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache
libgl1-mesa-dev libxml2-utils xsltproc unzip
//gitの設定
git config --global user.name "justive"
git config --global user.email "main@justive.com"
//ディレクトリの作成(追加)
mkdir ~/bin
//repoの取得
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x /bin/repo/bin:${PATH}
export PATH=
//repoを動かすためpythonインストール(追加)
sudo apt-get -y install python-pip
sudo pip install scikit-learn
//androidソースコードの取得
repo init -u https://android.googlesource.com/platform/manifest
repo sync -j2
//classes.dexのOut of Memory対策
export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"
//androidのビルド
. build/envsetup.sh && lunch aosp_x86-eng && m
ここで buildのファイルがないとエラーが発生しました。
たぶん、repoコマンドのandroidのソースコードの取得が不完全だと考えています。
想定されるインストール時間が2時間らしいのですが、15分程度で終了しました。
私の考えでは、repo コマンドを動かすためのpyhonインストールが不自然だと考えています。
ネットでpythonインストールコマンドと調べただけのものをただ打ったものになります。
しかし、repo自体は起動しているので、その考えが正しいかも分かりません。
buildフォルダができない理由を教えて頂けないでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。