Post Reply

[Q] Build color os from source bug:aapt not found

OP 29y6145

31st May 2014, 06:16 AM   |  #1  
OP Member
Thanks Meter: 14
 
66 posts
Join Date:Joined: Jun 2013
Sorry my En bad
Iam complice Color os 2.0 Form source github ok
Iam build color os 2.0 but bug
code bug:

#compile framework-res.apk
/home/leminh/color/tools/aapt p -f -m -x -z -J out/gen -S /home/leminh/color/build/res-build/oppo-overlay/res/ -S out/framework-res/res -M out/framework-res/AndroidManifest.xml -F out/framework-res-unsigned.apk -P out/gen/public_resources.xml -A out/framework-res/assets --auto-add-overlay > compile.framework-res.log
/bin/sh: 1: /home/leminh/color/tools/aapt: not found
make: *** [resource] Error 127

How to Fix
tksss
31st May 2014, 06:33 AM   |  #2  
MasterAwesome's Avatar
Senior Member
Thanks Meter: 791
 
1,132 posts
Join Date:Joined: Jun 2013
More
The Android Asset Packaging Tool (aapt) takes your application resource files, such as the*AndroidManifest.xmlfile and the XML files for your Activities, and compiles them. An*R.java*is also produced so you can reference your resources from your Java code.

the aapt is not found this interns stop building from creating R.java which stops creation of class files which disrupts the formation of dex files and so on..

Solution: Looks like you don't have sdk installed on your Linux or you didn't set the path to sdk.

Regards
MasterAwesome
The Following User Says Thank You to MasterAwesome For This Useful Post: [ View ]
31st May 2014, 07:11 AM   |  #3  
OP Member
Thanks Meter: 14
 
66 posts
Join Date:Joined: Jun 2013
Quote:
Originally Posted by MasterAwesome

The Android Asset Packaging Tool (aapt) takes your application resource files, such as the*AndroidManifest.xmlfile and the XML files for your Activities, and compiles them. An*R.java*is also produced so you can reference your resources from your Java code.

the aapt is not found this interns stop building from creating R.java which stops creation of class files which disrupts the formation of dex files and so on..

Solution: Looks like you don't have sdk installed on your Linux or you didn't set the path to sdk.

Regards
MasterAwesome

tks
how to set the path to sdk.
31st May 2014, 07:19 AM   |  #4  
MasterAwesome's Avatar
Senior Member
Thanks Meter: 791
 
1,132 posts
Join Date:Joined: Jun 2013
More
Quote:
Originally Posted by Uzayr

Thank you MasterAwesome for repsonding.

And, if you don't mind. Any idea how i can set the linux path to the latest SDK?

Open your ~/.bashrc and at the end add
Code:
export PATH=$PATH:~/SDK/platform-tools;
export PATH=$PATH:~/SDK/build-tools;
export PATH=$PATH:~/SDK/tools;
or to do it via terminal

Code:
echo 'export PATH=$PATH:~/SDK/platform-tools;' >> ~/.bashrc
echo 'export PATH=$PATH:~/SDK/build-tools;' >> ~/.bashrc
echo 'export PATH=$PATH:~/SDK/tools;' >> ~/.bashrc
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Q&A, Help & Troubleshooting by ThreadRank