Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,731,757 Members 48,440 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
29y6145
Old
#1  
Member - OP
Thanks Meter 12
Posts: 60
Join Date: Jun 2013
Default [Q] Build color os from source bug:aapt not found

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
 
MasterAwesome
Old
#2  
MasterAwesome's Avatar
Senior Member
Thanks Meter 677
Posts: 1,049
Join Date: Jun 2013
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
“Be yourself; everyone else is already taken.”― Oscar Wilde
The Following User Says Thank You to MasterAwesome For This Useful Post: [ Click to Expand ]
 
29y6145
Old
#3  
Member - OP
Thanks Meter 12
Posts: 60
Join Date: Jun 2013
Quote:
Originally Posted by MasterAwesome View Post
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.
 
MasterAwesome
Old
#4  
MasterAwesome's Avatar
Senior Member
Thanks Meter 677
Posts: 1,049
Join Date: Jun 2013
Quote:
Originally Posted by Uzayr View Post
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
“Be yourself; everyone else is already taken.”― Oscar Wilde
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes