Android build error - General Questions and Answers

I'm trying to build android from the Google AOSP source code, but I get this error. Somebody please help
```
[100% 1/1] out/host/linux-x86/bin/soong_build 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: test/vts-testcase/vndk/Android.bp:19:1: "vts_vndk_utils" depends on undefined module "vndk_lib_lists"
10:45:14 soong bootstrap failed with: exit status 1
#### failed to build some targets (25 seconds) ####
```

Related

Build Android error. Help me,plz!

Code:
FAILED: /home/jack/Mokee/O/out/target/common/docs/mokee-api-stubs-timestamp
/bin/bash -c "(mkdir -p /home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/mokee-api-stubs_intermediates/ ) && (rm -f /home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/mokee-api-stubs_intermediates/droiddoc-src-list ) && (touch /home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/mokee-api-stubs_intermediates/droiddoc-src-list ) && (echo -n 'mokee-sdk/sdk/src/java/mokee/alarmclock/ClockContract.java mokee-sdk/sdk/src/java/mokee/alarmclock/MoKeeAlarmClock.java mokee-sdk/sdk/src/java/mokee/app/CustomTile.java mokee-sdk/sdk/src/java/mokee/app/CustomTileListenerService.java mokee-sdk/sdk/src/java/mokee/app/MKContextConstants.java mokee-sdk/sdk/src/java/mokee/app/MKStatusBarManager.java mokee-sdk/sdk/src/java/mokee/app/MKTelephonyManager.java mokee-sdk/sdk/src/java/mokee/app/Profile.java mokee-sdk/sdk/src/java/mokee/app/ProfileGroup.java mokee-sdk/sdk/src/java/mokee/app/ProfileManager.java mokee-sdk/sdk/src/java/mokee/app/StatusBarPanelCustomTile.java mokee-sdk/sdk/src/java/mokee/content/Intent.java mokee-sdk/sdk/src/java/mokee/externalviews/ExternalView.java mokee-sdk/sdk/src/java/mokee/externalviews/ExternalViewProperties.java mokee-sdk/sdk/src/java/mokee/externalviews/ExternalViewProviderService.java mokee-sdk/sdk/src/java/mokee/hardware/DisplayMode.java mokee-sdk/sdk/src/java/mokee/hardware/HSIC.java mokee-sdk/sdk/src/java/mokee/hardware/LiveDisplayConfig.java mokee-sdk/sdk/src/java/mokee/hardware/LiveDisplayManager.java mokee-sdk/sdk/src/java/mokee/hardware/MKHardwareManager.java mokee-sdk/sdk/src/java/mokee/hardware/ThermalListenerCallback.java mokee-sdk/sdk/src/java/mokee/hardware/TouchscreenGesture.java mokee-sdk/sdk/src/java/mokee/media/AudioSessionInfo.java mokee-sdk/sdk/src/java/mokee/media/MKAudioManager.java mokee-sdk/sdk/src/java/mokee/media/MediaRecorder.java mokee-sdk/sdk/src/java/mokee/os/Build.java mokee-sdk/sdk/src/java/mokee/os/Concierge.java mokee-sdk/sdk/src/java/mokee/power/PerformanceManager.java mokee-sdk/sdk/src/java/mokee/power/PerformanceManagerInternal.java mokee-sdk/sdk/src/java/mokee/power/PerformanceProfile.java mokee-sdk/sdk/src/java/mokee/preference/ConstraintsHelper.java mokee-sdk/sdk/src/java/mokee/preference/GlobalSettingSwitchPreference.java mokee-sdk/sdk/src/java/mokee/preference/MKGlobalSettingSwitchPreference.java mokee-sdk/sdk/src/java/mokee/preference/MKSecureSettingListPreference.java mokee-sdk/sdk/src/java/mokee/preference/MKSecureSettingSwitchPreference.java mokee-sdk/sdk/src/java/mokee/preference/MKSystemSettingDropDownPreference.java mokee-sdk/sdk/src/java/mokee/preference/MKSystemSettingListPreference.java mokee-sdk/sdk/src/java/mokee/preference/MKSystemSettingSwitchPreference.java mokee-sdk/sdk/src/java/mokee/preference/RemotePreference.java mokee-sdk/sdk/src/java/mokee/preference/RemotePreferenceManager.java mokee-sdk/sdk/src/java/mokee/preference/RemotePreferenceUpdater.java mokee-sdk/sdk/src/java/mokee/preference/SecureSettingSwitchPreference.java mokee-sdk/sdk/src/java/mokee/preference/SelfRemovingDropDownPreference.java mokee-sdk/sdk/src/java/mokee/preference/SelfRemovingListPreference.java mokee-sdk/sdk/src/java/mokee/preference/SelfRemovingPreference.java mokee-sdk/sdk/src/java/mokee/preference/SelfRemovingSwitchPreference.java mokee-sdk/sdk/src/java/mokee/preference/SettingsHelper.java mokee-sdk/sdk/src/java/mokee/preference/SystemSettingSwitchPreference.java mokee-sdk/sdk/src/java/mokee/profiles/AirplaneModeSettings.java mokee-sdk/sdk/src/java/mokee/profiles/BrightnessSettings.java mokee-sdk/sdk/src/java/mokee/profiles/ConnectionSettings.java mokee-sdk/sdk/src/java/mokee/profiles/LockSettings.java mokee-sdk/sdk/src/java/mokee/profiles/RingModeSettings.java mokee-sdk/sdk/src/java/mokee/profiles/StreamSettings.java mokee-sdk/sdk/src/java/mokee/providers/DataUsageContract.java mokee-sdk/sdk/src/java/mokee/providers/MKSettings.java mokee-sdk/sdk/src/java/mokee/providers/WeatherContract.java mokee-sdk/sdk/src/java/mokee/util/ColorUtils.java mokee-sdk/sdk/src/java/mokee/util/palette/ColorCutQuantizer.java mokee-sdk/sdk/src/java/mokee/util/palette/ColorUtils.java mokee-sdk/sdk/src/java/mokee/util/palette/DefaultGenerator.java mokee-sdk/sdk/src/java/mokee/util/palette/Palette.java mokee-sdk/sdk/src/java/mokee/weather/MKWeatherManager.java mokee-sdk/sdk/src/java/mokee/weather/RequestInfo.java mokee-sdk/sdk/src/java/mokee/weather/WeatherInfo.java mokee-sdk/sdk/src/java/mokee/weather/WeatherLocation.java mokee-sdk/sdk/src/java/mokee/weather/util/WeatherUtils.java mokee-sdk/sdk/src/java/mokee/weatherservice/ServiceRequest.java mokee-sdk/sdk/src/java/mokee/weatherservice/ServiceRequestResult.java mokee-sdk/sdk/src/java/mokee/weatherservice/WeatherProviderService.java /home/jack/Mokee/O/out/target/common/obj/APPS/org.mokee.platform-res_intermediates/src/mokee/platform/R.java /home/jack/Mokee/O/out/target/common/obj/APPS/org.mokee.platform-res_intermediates/src/mokee/platform/Manifest.java /home/jack/Mokee/O/out/target/common/obj/APPS/org.mokee.platform-res_intermediates/src/org/mokee/platform/internal/R.java ' >> /home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/mokee-api-stubs_intermediates/droiddoc-src-list ) && (for d in /home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/mokee-api-stubs_intermediates/src /home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/org.mokee.platform.sdk_intermediates/src ; do find \$d -name '*.java' -and -not -name '.*' >> /home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/mokee-api-stubs_intermediates/droiddoc-src-list 2> /dev/null ; done ; true ) && (( javadoc -encoding UTF-8 \\@/home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/mokee-api-stubs_intermediates/droiddoc-src-list -J-Xmx1600m -J-XX:-OmitStackTraceInFastThrow -XDignore.symbol.file -quiet -doclet com.google.doclava.Doclava -docletpath /home/jack/Mokee/O/out/host/linux-x86/framework/jsilver.jar:/home/jack/Mokee/O/out/host/linux-x86/framework/doclava.jar -templatedir build/tools/droiddoc/templates-sdk -bootclasspath /home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes.jar:/home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar -classpath /home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar:/home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes.jar:/home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar:/home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar:/home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/org.mokee.platform.sdk_intermediates/classes.jar: -sourcepath sdk/src/java/mokee/alarmclock/ClockContract.java:sdk/src/java/mokee/alarmclock/MoKeeAlarmClock.java:sdk/src/java/mokee/app/CustomTile.java:sdk/src/java/mokee/app/CustomTileListenerService.java:sdk/src/java/mokee/app/MKContextConstants.java:sdk/src/java/mokee/app/MKStatusBarManager.java:sdk/src/java/mokee/app/MKTelephonyManager.java:sdk/src/java/mokee/app/Profile.java:sdk/src/java/mokee/app/ProfileGroup.java:sdk/src/java/mokee/app/ProfileManager.java:sdk/src/java/mokee/app/StatusBarPanelCustomTile.java:sdk/src/java/mokee/content/Intent.java:sdk/src/java/mokee/externalviews/ExternalView.java:sdk/src/java/mokee/externalviews/ExternalViewProperties.java:sdk/src/java/mokee/externalviews/ExternalViewProviderService.java:sdk/src/java/mokee/hardware/DisplayMode.java:sdk/src/java/mokee/hardware/HSIC.java:sdk/src/java/mokee/hardware/LiveDisplayConfig.java:sdk/src/java/mokee/hardware/LiveDisplayManager.java:sdk/src/java/mokee/hardware/MKHardwareManager.java:sdk/src/java/mokee/hardware/ThermalListenerCallback.java:sdk/src/java/mokee/hardware/TouchscreenGesture.java:sdk/src/java/mokee/media/AudioSessionInfo.java:sdk/src/java/mokee/media/MKAudioManager.java:sdk/src/java/mokee/media/MediaRecorder.java:sdk/src/java/mokee/os/Build.java:sdk/src/java/mokee/os/Concierge.java:sdk/src/java/mokee/power/PerformanceManager.java:sdk/src/java/mokee/power/PerformanceManagerInternal.java:sdk/src/java/mokee/power/PerformanceProfile.java:sdk/src/java/mokee/preference/ConstraintsHelper.java:sdk/src/java/mokee/preference/GlobalSettingSwitchPreference.java:sdk/src/java/mokee/preference/MKGlobalSettingSwitchPreference.java:sdk/src/java/mokee/preference/MKSecureSettingListPreference.java:sdk/src/java/mokee/preference/MKSecureSettingSwitchPreference.java:sdk/src/java/mokee/preference/MKSystemSettingDropDownPreference.java:sdk/src/java/mokee/preference/MKSystemSettingListPreference.java:sdk/src/java/mokee/preference/MKSystemSettingSwitchPreference.java:sdk/src/java/mokee/preference/RemotePreference.java:sdk/src/java/mokee/preference/RemotePreferenceManager.java:sdk/src/java/mokee/preference/RemotePreferenceUpdater.java:sdk/src/java/mokee/preference/SecureSettingSwitchPreference.java:sdk/src/java/mokee/preference/SelfRemovingDropDownPreference.java:sdk/src/java/mokee/preference/SelfRemovingListPreference.java:sdk/src/java/mokee/preference/SelfRemovingPreference.java:sdk/src/java/mokee/preference/SelfRemovingSwitchPreference.java:sdk/src/java/mokee/preference/SettingsHelper.java:sdk/src/java/mokee/preference/SystemSettingSwitchPreference.java:sdk/src/java/mokee/profiles/AirplaneModeSettings.java:sdk/src/java/mokee/profiles/BrightnessSettings.java:sdk/src/java/mokee/profiles/ConnectionSettings.java:sdk/src/java/mokee/profiles/LockSettings.java:sdk/src/java/mokee/profiles/RingModeSettings.java:sdk/src/java/mokee/profiles/StreamSettings.java:sdk/src/java/mokee/providers/DataUsageContract.java:sdk/src/java/mokee/providers/MKSettings.java:sdk/src/java/mokee/providers/WeatherContract.java:sdk/src/java/mokee/util/ColorUtils.java:sdk/src/java/mokee/util/palette/ColorCutQuantizer.java:sdk/src/java/mokee/util/palette/ColorUtils.java:sdk/src/java/mokee/util/palette/DefaultGenerator.java:sdk/src/java/mokee/util/palette/Palette.java:sdk/src/java/mokee/weather/MKWeatherManager.java:sdk/src/java/mokee/weather/RequestInfo.java:sdk/src/java/mokee/weather/WeatherInfo.java:sdk/src/java/mokee/weather/WeatherLocation.java:sdk/src/java/mokee/weather/util/WeatherUtils.java:sdk/src/java/mokee/weatherservice/ServiceRequest.java:sdk/src/java/mokee/weatherservice/ServiceRequestResult.java:sdk/src/java/mokee/weatherservice/WeatherProviderService.java:/home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar:/home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes.jar:/home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar:/home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar:/home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/org.mokee.platform.sdk_intermediates/classes.jar: -d /home/jack/Mokee/O/out/target/common/docs/mokee-api-stubs -hdf page.build OPR3.170623.013-\$(cat /home/jack/Mokee/O/out/build_number.txt) -hdf page.now \"\$(date -d @\$(cat /home/jack/Mokee/O/out/build_date.txt) \"+%d %b %Y %k:%M\")\" -stubs /home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/mokee-sdk_stubs_current_intermediates/src -stubpackages mokee.alarmclock:mokee.app:mokee.content:mokee.externalviews:mokee.hardware:mokee.media:mokee.os:mokee.preference:mokee.profiles:mokee.providers:mokee.platform:mokee.power:mokee.util:mokee.weather:mokee.weatherservice -exclude org.mokee.platform.internal -api /home/jack/Mokee/O/out/target/common/obj/PACKAGING/mk_public_api.txt -removedApi /home/jack/Mokee/O/out/target/common/obj/PACKAGING/mk_removed.txt -nodocs && touch -f /home/jack/Mokee/O/out/target/common/docs/mokee-api-stubs-timestamp ) || (rm -rf /home/jack/Mokee/O/out/target/common/docs/mokee-api-stubs /home/jack/Mokee/O/out/target/common/obj/JAVA_LIBRARIES/mokee-api-stubs_intermediates/droiddoc-src-list; exit 45) )"
mokee-sdk/sdk/src/java/mokee/preference/ConstraintsHelper.java:27: error:package android.support.v7.preference does not exist
import android.support.v7.preference.Preference;
^
mokee-sdk/sdk/src/java/mokee/preference/ConstraintsHelper.java:28: error: package android.support.v7.preference does not exist
import android.support.v7.preference.PreferenceGroup;
^
mokee-sdk/sdk/src/java/mokee/preference/ConstraintsHelper.java:29: error: package android.support.v7.preference does not exist
import android.support.v7.preference.PreferenceManager;
^
mokee-sdk/sdk/src/java/mokee/preference/SelfRemovingDropDownPreference.java:28: error:
public class SelfRemovingDropDownPreference extends DropDownPreference {
^
mokee-sdk/sdk/src/java/mokee/preference/SelfRemovingDropDownPreference.java:48: error: cannot find symbol
public void onBindViewHolder(PreferenceViewHolder holder) {
^
mokee-sdk/sdk/src/java/mokee/preference/SelfRemovingPreference.java:53: error: cannot find symbol
public void onBindViewHolder(PreferenceViewHolder holder) {
^
symbol: class PreferenceViewHolder
location: class SelfRemovingPreference
javadoc: error - In doclet class
In com.google.doclava.Doclava, method start had thrown an exception java.lang.reflect.InvocationTargetException
java.lang.IllegalArgumentException: Unable to find IThermalListenerCallback.java. This is usually because doclava has been asked to generate stubs for a file that isn't present in the list of input source files but exists in the input classpath.
at com.google.doclava.Stubs.parseLicenseHeader(Stubs.java:494)
at com.google.doclava.Stubs.writeClassFile(Stubs.java:478)
at com.google.doclava.Stubs.writeClassFile(Stubs.java:465)
at com.google.doclava.Stubs.writeStubsAndApi(Stubs.java:193)
at com.google.doclava.Doclava.start(Doclava.java:511)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:310)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:189)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:366)
at com.sun.tools.javadoc.Start.begin(Start.java:219)
at com.sun.tools.javadoc.Start.begin(Start.java:205)
at com.sun.tools.javadoc.Main.execute(Main.java:64)
at com.sun.tools.javadoc.Main.main(Main.java:54)
1 error
39 warning
ninja: build stopped: subcommand failed.
11:45:41 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

TWRP question

i am trying to build twrp for a device and i get this
[ 76% 10/13] ----- Making recovery ramdisk ------
FAILED: /home/wajdi/Documents/omni/out/target/product/wingray/ramdisk-recovery.cpio
/bin/bash -c "(mkdir -p /home/wajdi/Documents/omni/out/target/product/wingray/recovery ) && (mkdir -p /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/etc /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/sdcard /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/tmp ) && (echo Copying baseline ramdisk... ) && (rsync -a --exclude=etc --exclude=sdcard --exclude=vendor --exclude=/root/sepolicy --exclude=/root/plat_file_contexts --exclude=/root/nonplat_file_contexts --exclude=/root/plat_property_contexts --exclude=/root/nonplat_property_contexts --exclude=cache /home/wajdi/Documents/omni/out/target/product/wingray/root /home/wajdi/Documents/omni/out/target/product/wingray/recovery ) && (cp -f /home/wajdi/Documents/omni/out/target/product/wingray/system/bin/adbd /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/sbin/adbd ) && (echo Modifying ramdisk contents... ) && (rm -f /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/init*.rc ) && (cp -f bootable/recovery/etc/init.rc /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/ ) && (cp /home/wajdi/Documents/omni/out/target/product/wingray/root/init.recovery.*.rc /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/ || true ) && (mkdir -p /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/res ) && (rm -rf /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/res/* ) && (cp -rf bootable/recovery/res-xhdpi/* /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/res ) && (cp -f bootable/recovery/fonts/12x22.png /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/res/images/font.png ) && (cp -rf device/moto/wingray/recovery/root /home/wajdi/Documents/omni/out/target/product/wingray/recovery/ ) && (cp -f device/moto/wingray/twrp.fstab /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/etc/recovery.fstab ) && (cp /home/wajdi/Documents/omni/out/target/product/wingray/obj/PACKAGING/ota_keys_intermediates/keys /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/res/keys ) && (cat /home/wajdi/Documents/omni/out/target/product/wingray/root/default.prop > /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/prop.default ) && (cat /home/wajdi/Documents/omni/out/target/product/wingray/obj/ETC/system_build_prop_intermediates/build.prop >> /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/prop.default ) && (ln -sf prop.default /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/default.prop ) && (echo "----- Making uncompressed recovery ramdisk ------" ) && (/home/wajdi/Documents/omni/out/host/linux-x86/bin/mkbootfs /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root > /home/wajdi/Documents/omni/out/target/product/wingray/ramdisk-recovery.cpio )"
Copying baseline ramdisk...
cp: cannot stat '/home/wajdi/Documents/omni/out/target/product/wingray/system/bin/adbd': No such file or directory
ninja: build stopped: subcommand failed.
17:08:13 ninja failed with: exit status 1
#### failed to build some targets (48 seconds) ####
ive spent a week searching for a solution and i didnt find anything
Wajdi Muhtadi said:
i am trying to build twrp for a device and i get this
[ 76% 10/13] ----- Making recovery ramdisk ------
FAILED: /home/wajdi/Documents/omni/out/target/product/wingray/ramdisk-recovery.cpio
/bin/bash -c "(mkdir -p /home/wajdi/Documents/omni/out/target/product/wingray/recovery ) && (mkdir -p /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/etc /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/sdcard /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/tmp ) && (echo Copying baseline ramdisk... ) && (rsync -a --exclude=etc --exclude=sdcard --exclude=vendor --exclude=/root/sepolicy --exclude=/root/plat_file_contexts --exclude=/root/nonplat_file_contexts --exclude=/root/plat_property_contexts --exclude=/root/nonplat_property_contexts --exclude=cache /home/wajdi/Documents/omni/out/target/product/wingray/root /home/wajdi/Documents/omni/out/target/product/wingray/recovery ) && (cp -f /home/wajdi/Documents/omni/out/target/product/wingray/system/bin/adbd /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/sbin/adbd ) && (echo Modifying ramdisk contents... ) && (rm -f /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/init*.rc ) && (cp -f bootable/recovery/etc/init.rc /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/ ) && (cp /home/wajdi/Documents/omni/out/target/product/wingray/root/init.recovery.*.rc /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/ || true ) && (mkdir -p /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/res ) && (rm -rf /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/res/* ) && (cp -rf bootable/recovery/res-xhdpi/* /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/res ) && (cp -f bootable/recovery/fonts/12x22.png /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/res/images/font.png ) && (cp -rf device/moto/wingray/recovery/root /home/wajdi/Documents/omni/out/target/product/wingray/recovery/ ) && (cp -f device/moto/wingray/twrp.fstab /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/etc/recovery.fstab ) && (cp /home/wajdi/Documents/omni/out/target/product/wingray/obj/PACKAGING/ota_keys_intermediates/keys /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/res/keys ) && (cat /home/wajdi/Documents/omni/out/target/product/wingray/root/default.prop > /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/prop.default ) && (cat /home/wajdi/Documents/omni/out/target/product/wingray/obj/ETC/system_build_prop_intermediates/build.prop >> /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/prop.default ) && (ln -sf prop.default /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root/default.prop ) && (echo "----- Making uncompressed recovery ramdisk ------" ) && (/home/wajdi/Documents/omni/out/host/linux-x86/bin/mkbootfs /home/wajdi/Documents/omni/out/target/product/wingray/recovery/root > /home/wajdi/Documents/omni/out/target/product/wingray/ramdisk-recovery.cpio )"
Copying baseline ramdisk...
cp: cannot stat '/home/wajdi/Documents/omni/out/target/product/wingray/system/bin/adbd': No such file or directory
ninja: build stopped: subcommand failed.
17:08:13 ninja failed with: exit status 1
#### failed to build some targets (48 seconds) ####
ive spent a week searching for a solution and i didnt find anything
Click to expand...
Click to collapse
It seems that omni project has remove TWRP from their manifest.xml so the source code of boot/recovery folder is from AOSP, not TWRP.
I have the same problem and I solve it by using minimal-manifest-twrp/platform_manifest_twrp_omni on github and I success.
don't forget to use `export ALLOW_MISSING_DEPENDENCIES=true` command before u compile by using minimal-manifest-twrp/platform_manifest_twrp_omni project

build error

I' m trying to build resurrection remix oreo rom for moto c plus, I'm getting error when I give input .build/envsetup.sh && brunch m_e_arm-userdebug
Code:
[592/1070] including ./packages/apps/ResurrectionOTA/Android.mk ...
cp: illegal option -- u
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory
[739/1070] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:99: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[1070/1070] including ./vendor/rr/prebuilt/common/Android.mk ...
[100% 1/1] build bacon
FAILED: bacon
/bin/bash -c "(mv /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/.zip ) && (mv /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/system/etc/RR/Changelog.txt /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/-Changelog.txt ) && (md5 -q /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/.zip | sed \"s|/Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/||\" > /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/.zip.md5sum ) && (echo \"Package Complete: /Volumes/untitled/rr-oreo/out/target/product/mini-emulator-armv7-a-neon/.zip\" >&2 ) && (./vendor/rr/tools/rr.sh )"
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
ninja: build stopped: subcommand failed.
15:48:04 ninja failed with: exit status 1
#### failed to build some targets (09:51 (mm:ss)) ####

problems building lineageos

i have an issue building lineage 18.1 for oneplus 7 pro, after running brunch guacemole, the soong build.ninja fails with the following error:
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/s
oong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
error: android_hardware_oneplus/aidl/vibrator/Android.bp:22:1: "vendor.qti.hardware.vibrator.service.onep
lus" depends on undefined module "android.hardware.vibrator-V1-ndk_platform"
error: hardware/oneplus/aidl/vibrator/Android.bp:4:1: "vendor.qti.hardware.vibrator.impl.oneplus" depends
on undefined module "android.hardware.vibrator-V1-ndk_platform"
05:02:02 soong bootstrap failed with: exit status 1
#### failed to build some targets (24 seconds) ####
does anyone know the solution (I have tried resyncing the repo but that does not help)

Problem building android

Hello,
I was recently trying to build CorvusOS for my samsung galaxy a7 2017 a7y17lte and when I did brunch a7y17lte everything was going well until I got: config file:
[100% 183/183] /home/user/corvusos/out/soong/.bootstrap/bin/soong_build /home/user/corvusos/out/soong/build.ninja
FAILED: /home/user/corvusos/out/soong/build.ninja
/home/user/corvusos/out/soong/.bootstrap/bin/soong_build -t -l /home/user/corv
usos/out/.module_paths/Android.bp.list -b /home/user/corvusos/out/soong -n /hom
e/user/corvusos/out -d /home/user/corvusos/out/soong/build.ninja.d -globFile /
home/user/corvusos/out/soong/.bootstrap/build-globs.ninja -o /home/user/corvus
os/out/soong/build.ninja Android.bp
config file: /home/user/corvusos/out/soong/soong.variables did not parse correc
tly: invalid character ',' looking for beginning of value
21:36:59 soong bootstrap failed with: exit status 1
Is there any way to fix this?
Thanks in advance!

Categories

Resources