Status Update
Comments
ha...@google.com <ha...@google.com>
lo...@gmail.com <lo...@gmail.com> #2
Command which I using for building AVD system images is make sdk sdk_repo
ga...@google.com <ga...@google.com>
zi...@gmail.com <zi...@gmail.com> #3
# lunch sdk_phone_x86_64
# make sdk sdk_repo
I have the same issue. -0-
----------------------------------------------------------------------------------------------------------------------------------------------
[ 99% 396/397] analyzing Android.bp files and generating ninja file at out/soong/build.ninja
FAILED: out/soong/build.ninja
cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out/soong" --out "out" -o out/soong/build.ninja --globListDir build --globFile out/soong/globs-build.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.build Android.bp
error: prebuilts/module_sdk/conscrypt/current/Android.bp:20:1: dependency "art-bootclasspath-fragment" of "conscrypt-module-sdk_com.android.conscrypt-bootclasspath-fragment@current" missing variant:
apex:com.android.art
available variants:
os:android,arch:common
error: prebuilts/module_sdk/conscrypt/current/Android.bp:20:1: dependency "prebuilt_art-bootclasspath-fragment" of "conscrypt-module-sdk_com.android.conscrypt-bootclasspath-fragment@current" missing variant:
apex:com.android.art
available variants:
os:android,arch:common
13:57:24 soong bootstrap failed with: exit status 1
#### failed to build some targets (01:12 (mm:ss)) ####
----------------------------------------------------------------------------------------------------------------------------------------------
am...@google.com <am...@google.com> #4
# source ./build/envsetup.sh
# lunch sdk-eng
# make sdk
FAILED: out/soong/build.ninja
cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out/soong" --out "out" -o out/soong/build.ninja --globListDir build --globFile out/soong/globs-build.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.build Android.bp
error: prebuilts/module_sdk/conscrypt/current/Android.bp:20:1: dependency "art-bootclasspath-fragment" of "conscrypt-module-sdk_com.android.conscrypt-bootclasspath-fragment@current" missing variant:
apex:com.android.art
available variants:
os:android,arch:common
error: prebuilts/module_sdk/conscrypt/current/Android.bp:20:1: dependency "prebuilt_art-bootclasspath-fragment" of "conscrypt-module-sdk_com.android.conscrypt-bootclasspath-fragment@current" missing variant:
apex:com.android.art
available variants:
os:android,arch:common
16:48:05 soong bootstrap failed with: exit status 1
#### failed to build some targets (18 seconds) ####
al...@truecaller.com <al...@truecaller.com> #5
ke...@gmail.com <ke...@gmail.com> #6
mi...@gmail.com <mi...@gmail.com> #7
sp...@google.com <sp...@google.com> #8
am...@pspdfkit.com <am...@pspdfkit.com> #9
[100% 1/1] analyzing Android.bp files and generating ninja file at out/soong/build.ninja
FAILED: out/soong/build.ninja
cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out/soong" --out "out" -o out/soong/build.ninja --globListDir build --globFile out/soong/globs-build.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.build Android.bp
error: prebuilts/module_sdk/conscrypt/current/Android.bp:20:1: dependency "art-bootclasspath-fragment" of "conscrypt-module-sdk_com.android.conscrypt-bootclasspath-fragment@current" missing variant:
apex:com.android.art
available variants:
os:android,arch:common
error: prebuilts/module_sdk/conscrypt/current/Android.bp:20:1: dependency "prebuilt_art-bootclasspath-fragment" of "conscrypt-module-sdk_com.android.conscrypt-bootclasspath-fragment@current" missing variant:
apex:com.android.art
available variants:
os:android,arch:common
15:44:08 soong bootstrap failed with: exit status 1
#### failed to build some targets (01:24 (mm:ss)) ####
ar...@google.com <ar...@google.com> #10
Buen aplicación me caen bien👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍 la aplicación de maravilla 🤦♀️🤦♀️🤦♀️🤦♀️🤦♀️🤦♀️❤ bueno de pana la mejor aplicación del mundo🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍🌍 en serio de verda muy buena la
sp...@google.com <sp...@google.com> #12
go...@gmail.com <go...@gmail.com> #14
I added MODULE_BUILD_FROM_SOURCE := true into build/make/target/product/sdk_phone_x86_64.mk as per the above link suggestion. Build has gone through but I am not able to find sdk-repo-linux-system-images-eng.[username].zip in out/host/linux-x86/sdk/sdk_car_x86_64 folder
sk...@gmail.com <sk...@gmail.com> #15
Could you double confirm your lunch?
je...@google.com <je...@google.com> #16
Lunch option is sdk_car_x86_64-userdebug
.
Since, there is no sdk_car_x86_64.mk file in build/make/target/product/ repo, so I added MODULE_BUILD_FROM_SOURCE := true
into build/make/target/product/sdk_phone_x86_64.mk and build has gone through. But sdk-repo-linux-system-images-eng.[username].zip
is missing in out folder.
lu...@gmail.com <lu...@gmail.com> #17
an...@google.com <an...@google.com> #18
It doesn't work, it gives the same build error. But I tried into different mk file (device/generic/goldfish/vendor.mk) and here also Build has gone through and sdk-repo-linux-system-images-eng.[username].zip
is missing
ig...@monzo.com <ig...@monzo.com> #19
da...@gmail.com <da...@gmail.com> #20
dm...@gmail.com <dm...@gmail.com> #21
sh...@gmail.com <sh...@gmail.com> #22
Hi,
I can build&run sdk_car_x86_64-userdebug with lunch sdk_car_x86_64-userdebug && make installclean && m -j && emulator
on android-13.0.0_r24
.
I believe the conscrypt error was resolved in a later tag.
To get the dist zip, I ran: build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=$TARGET_PRODUCT TARGET_BUILD_VARIANT=userdebug droid dist emu_img_zip
.
Can you please try this steps to see if it works?
Thanks!
sh...@gmail.com <sh...@gmail.com> #23
Hi,
I have tried to build avd with command build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=$TARGET_PRODUCT TARGET_BUILD_VARIANT=userdebug droid dist emu_img_zip
and it is generating sdk-repo-linux-system-images-eng.[username].zip. However, while launching emulator I have to use command emulator @AVD_name -skin 1200x800
otherwise there is no boot animation and launcher.
Please provide proper solution for command make sdk sdk_repo
mg...@gmail.com <mg...@gmail.com> #24
If I'm running make sdk sdk_repo
I get
out/host/linux-x86/sdk
containing the framework filesout/host/linux-x86/sdk-repo
containing the platform-tools and build-tools zip
Running make emu_imgs_zip
created out/target/product/emulator_car_x86_64/sdk-repo-linux-system-images-eng.$(whoami).zip
.
After running lunch sdk_car_x86_64-userdebug && make installclean && m -j && emulator
I get a successful build and emulator launches. Pls see screenshot attached.
If you need to use emulator @AVD_name
, you would likely run an emulator from your Android Studio/SDK install (from ~/.android/avd) using the emulator binary in prebuilts/android-emulator
, which is likely not what you want.
If you want to install the created sdk-repo-linux-system-images-eng.$(whoami).zip
:
- You can overwrite an existing install in your
$ANDROID_HOME/system-images/...
- or you can install the image in Android Studio, but you need to create a repo xml file using the format below (please update the size,checksum,url at least); then add a new update site in SDKManager (file:///path/to/xml; notice the 3x
/
).
<?xml version="1.0"?>
<sdk:sdk-sys-img
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sdk="http://schemas.android.com/sdk/android/repo/sys-img2/01">
<remotePackage path="system-images;android-33;sdk_car_x86_64-userdebug;x86_64">
<type-details xsi:type="sdk:sysImgDetailsType">
<api-level>33</api-level>
<tag>
<id>android-automotive-playstore</id>
<display>sdk_car_x86_64-userdebug-mybuild</display>
</tag>
<abi>x86_64</abi>
</type-details>
<revision>
<major>1</major>
</revision>
<display-name>sdk_car_x86_64-userdebug-mybuild</display-name>
<archives>
<archive>
<complete>
<size>UPDATE_THIS_BYTES</size>
<checksum type='sha1'>UPDATE_THIS_SHA1</checksum>
<url>sdk-repo-linux-system-images-UPDATE_THIS.zip</url>
</complete>
</archive>
</archives>
</remotePackage>
</sdk:sdk-sys-img>
Otherwise, what you explained looks good. I think you have successfully built the target that should work.
Description
1. Describe the bug or issue that you're seeing.
AGP 8.1.0 uninstalls app after running instrumented tests - 7.4.2 does not
3. If you know what they are, write the steps to reproduce:
Install a debug variant of your app onto a device.
Run instrumented tests targeted that app.
In AGP < 8.x, the app was kept on the device (expected behavior).
In AGP >= 8.x, the app is uninstalled.
Build: AI-223.8836.35.2231.10406996, 202306290837
AI-223.8836.35.2231.10406996, JRE 17.0.6+0-17.0.6b829.9-10027231x64 JetBrains s.r.o., OS Mac OS X(aarch64) v13.5, screens 3456.0x2234.0, 2560.0x1440.0, 2560.0x1440.0
AS: Giraffe | 2022.3.1
Kotlin plugin: 223-1.8.0-release-345-AS8836.35.2231.10406996
Android Gradle Plugin: 8.1.0
Gradle: 8.1
Gradle JDK: JetBrains Runtime version 17.0.6
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
```