[Android Q&A, Help & Troubleshooting] TheMrcool212:
Hi guys, it's been a while me building a ROM, i managed to build CM10.1 for Asus Eee Pad Transformer (TF101). It booted up succesfully. The ROM was nice. So now, im trying to build Paranoid Android 3.50 which release few days ago, it is still Android 4.2.2. I cloned the 4.2 device tree for the tablet. I think i don't need to clone the kernel source because i built the CM10.1 only with the device tree.

I have Ubuntu 13.04 installed in my PC, i had no problems when building the CM10.1 ROM.

Anyway, when i 'cd' to the Paranoid Android working folder in my computer, i typed:

. rom-build.sh

I didn't 'cd' it to my device tree, because i didn't found the rom-build.sh file. So it shows this error:

Building ParanoidAndroid v3.50

Traceback (most recent call last):
File "./vendor/pa/tools/getdevicetree.py", line 9, in <module>
device = sys.argv[1];
IndexError: list index out of range

Setting up environment
including device/asus/tf101/vendorsetup.sh
including vendor/pa/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/pa/bash_completion/repo.bash

Lunching device
build/core/product_config.mk:223: *** Cannot locate config makefile for product "pa_". Stop.
Device not found. Attempting to retrieve device repository from ParanoidAndroid Github (http://github.com/ParanoidAndroid).
Repository for not found in the ParanoidAndroid Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:223: *** Cannot locate config makefile for product "pa_". Stop.

** Don't have a product spec for: 'pa_'
** Do you have the right repo manifest?

Starting compilation
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=pa_tf101
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_GCC_VERSION=4.6
TARGET_USE_O3=
TARGET_LINARO_STRING_ROUTINES=
TARGET_USE_GRAPHITE=
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-19-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39
OUT_DIR=/home/munir/SourcePA/out
============================================
find: `src': No such file or directory
build/core/Makefile:40: warning: overriding commands for target `/home/munir/SourcePA/out/target/product/tf101/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/munir/SourcePA/out/target/product/tf101/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:40: warning: overriding commands for target `/home/munir/SourcePA/out/target/product/tf101/system/lib/libmllite.so'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/munir/SourcePA/out/target/product/tf101/system/lib/libmllite.so'
build/core/Makefile:40: warning: overriding commands for target `/home/munir/SourcePA/out/target/product/tf101/system/lib/libmlplatform.so'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/munir/SourcePA/out/target/product/tf101/system/lib/libmlplatform.so'
build/core/Makefile:40: warning: overriding commands for target `/home/munir/SourcePA/out/target/product/tf101/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/munir/SourcePA/out/target/product/tf101/system/etc/permissions/android.software.live_wallpaper.xml'
No private recovery resources for TARGET_DEVICE tf101
----- Making recovery image ------
target Dex: framework
target Strip: libcorkscrew (/home/munir/SourcePA/out/target/product/tf101/obj/lib/libcorkscrew.so)
target Strip: libjpeg (/home/munir/SourcePA/out/target/product/tf101/obj/lib/libjpeg.so)
make: *** [/home/munir/SourcePA/out/target/product/tf101/obj/lib/libcorkscrew.so] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/munir/SourcePA/out/target/product/tf101/obj/lib/libjpeg.so] Error 1

UNEXPECTED TOP-LEVEL EXCEPTION:
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:143)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:206)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
at com.android.dx.command.dexer.Main.processOne(Main.java:422)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:333)
at com.android.dx.command.dexer.Main.run(Main.java:209)
at com.android.dx.command.dexer.Main.main(Main.java:174)
at com.android.dx.command.Main.main(Main.java:91)
1 error; aborting
make: *** [/home/munir/SourcePA/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Error 1
/home/munir/SourcePA/out/target/product/tf101/recovery.img maxsize=10205184 blocksize=4224 total=5398528 reserve=105600
Made recovery image: /home/munir/SourcePA/out/target/product/tf101/recovery.img

Total time elapsed: 0 minutes (38.828995636 seconds)

Device tree: https://github.com/josteink/device_asus_tf101

I did "repo sync" but no luck. Any suggestions?