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

Search This thread

29y6145

Senior Member
Jun 7, 2013
459
262
Ha Noi
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

Recognized Developer
Jun 23, 2013
2,019
3,985
OnePlus 6
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
 
  • Like
Reactions: 29y6145

29y6145

Senior Member
Jun 7, 2013
459
262
Ha Noi
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

Recognized Developer
Jun 23, 2013
2,019
3,985
OnePlus 6
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
 

gintama_me

Senior Member
Sep 24, 2012
89
12
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
Do you have color os sources ? Because looks like OPPO have deleted them from GitHub.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    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