Don't use "sudo", it may be clearing the environment. It shouldn't be necessary once you've configured USB access: https://source.android.com/source/initializing.html#configuring-usb-access
- Dan On Thu, Jan 19, 2017 at 7:55 AM 龚泽龙 <[email protected]> wrote: > After I build the source code of AOSP. I try to flash the images into > Nexus 5. > > source build/envsetup.sh > > lunch > > 19 > > adb reboot bootloader > > sudo $(which fastboot) flashall -w > > error: neither -p product specified nor ANDROID_PRODUCT_OUT set > > But ANDROID_PRODUCT_OUT is already set. > > env | grep ANDROID_PRODUCT_OUT > > > ANDROID_PRODUCT_OUT=/home/gongzelong/OpenSource/Android/out/target/product/hammerhead > > -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-building?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Android Building" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
