日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Android >内容正文

Android

编译android模拟器,编译Android模拟器(make sdk),以及错误处理

發布時間:2023/12/10 Android 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 编译android模拟器,编译Android模拟器(make sdk),以及错误处理 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

編譯Android模擬器(make sdk),會報錯(couldn't locate source file)!

網上說,先lunch sdk-eng,再編譯,就可以了,試試看!

gaojs@ubuntu:~/work/android-4.0.4_r1.2$source build/envsetup.sh

including device/moto/stingray/vendorsetup.sh

including device/moto/wingray/vendorsetup.sh

including device/samsung/smdk4x12/vendorsetup.sh

including device/ti/panda/vendorsetup.sh

including sdk/bash_completion/adb.bash

gaojs@ubuntu:~/work/android-4.0.4_r1.2$ lunch sdk-eng============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.0.4

TARGET_PRODUCT=sdk

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a

HOST_ARCH=x86

HOST_OS=linux

HOST_BUILD_TYPE=release

BUILD_ID=IMM76I

============================================

gaojs@ubuntu:~/work/android-4.0.4_r1.2$lunch 7============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.0.4

TARGET_PRODUCT=full_smdk4x12

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

HOST_ARCH=x86

HOST_OS=linux

HOST_BUILD_TYPE=release

BUILD_ID=IMM76I

============================================

由于lunch sdk-eng跟lunch 7的參數不同,不能那樣弄!

所以,還是看看怎么解決如下的這些錯吧!

Docs droiddoc: out/target/common/docs/online-sdk

DroidDoc took 233 sec. to write docs to out/target/common/docs/online-sdk

Package SDK: out/host/linux-x86/sdk/android-sdk_eng.gaojs_linux-x86.zip

SDK: warning: including GNU target out/target/product/smdk4x12/system/lib/libbluetooth.so

SDK: warning: including GNU target out/target/product/smdk4x12/system/lib/libbluetoothd.so

SDK: warning: including GNU target out/target/product/smdk4x12/system/lib/libbtio.so

SDK: warning: including GNU target out/target/product/smdk4x12/system/lib/libdbus.so

development/build/sdk.atree:239: couldn't locate source file: framework/layoutlib-tests.jar

development/build/sdk.atree:240: couldn't locate source file: system/app/ConnectivityTest.apk

development/build/sdk.atree:241: couldn't locate source file: system/app/GpsLocationTest.apk

sdk/build/tools.atree:47: couldn't locate source file: usr/share/pc-bios/bios.bin

sdk/build/tools.atree:48: couldn't locate source file: usr/share/pc-bios/vgabios-cirrus.bin

sdk/build/tools.atree:51: couldn't locate source file: lib/libOpenglRender.so

sdk/build/tools.atree:52: couldn't locate source file: lib/libGLES_CM_translator.so

sdk/build/tools.atree:53: couldn't locate source file: lib/libGLES_V2_translator.so

sdk/build/tools.atree:54: couldn't locate source file: lib/libEGL_translator.so

sdk/build/tools.atree:64: couldn't locate source file: bin/lint

sdk/build/tools.atree:151: couldn't locate source file: framework/ddmlib-tests.jar

sdk/build/tools.atree:152: couldn't locate source file: framework/ninepatch-tests.jar

sdk/build/tools.atree:153: couldn't locate source file: framework/common-tests.jar

sdk/build/tools.atree:155: couldn't locate source file: framework/sdkuilib-tests.jar

make: *** [out/host/linux-x86/sdk/android-sdk_eng.gaojs_linux-x86.zip] Error 44

Source Insight里搜了一下,在如下兩個mk里包含layoutlib-tests:

---- layoutlib-tests Matches (2 in 2 files) ----

Android.mk (frameworks\base\tools\layoutlib\bridge\tests):LOCAL_MODULE := layoutlib-tests

Sdk.mk (build\target\product):?layoutlib-tests

編譯layoutlib-tests模塊,生成對應的jar庫:

$ mmm frameworks/base/tools/layoutlib/bridge/tests

make: Entering directory `/home/gaojs/work/android-4.0.4_r1.2'

Install: out/host/linux-x86/framework/layoutlib-tests.jar

make: Leaving directory `/home/gaojs/work/android-4.0.4_r1.2

然后,再編譯sdk,就能找到layoutlib-tests.jar! 也可以直接在sdk.atree和tools.atree里,將找不到的模塊注掉!? 不清楚這樣直接注掉,會產生什么不良影響,但至少能編譯通過了!

總結

以上是生活随笔為你收集整理的编译android模拟器,编译Android模拟器(make sdk),以及错误处理的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。