yashsingh1/xdaforums huggingface dataset:
[Android] Syl157:
Hi , 'im trying to compile AICP M but i have this error

[ERROR] Plugin org.apache.maven.plugins:maven-dependency-plugin:2.10 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-dependency-plugin:jar:2.10: Could not transfer artifact org.apache.maven.plugins:maven-dependency-plugin:pom:2.10 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

vendor/aicp/build/core/maven_artifact.mk:42: recipe for target '/home/aicp_honor8/out/target/common/obj/APPS/Gello_intermediates/org.cyanogenmod.gello-37.apk' failed

make: *** [/home/aicp_honor8/out/target/common/obj/APPS/Gello_intermediates/org.cyanogenmod.gello-37.apk] Error 1

Maven et JRE are correctly install , i have google but noth help. Any idea ? Thanks
[Android] sai milind:
any help with this error

Checking build with Jack: /home/milind/crdroid/out/target/common/obj/APPS/FrameworksUtilTests_intermediates/jack.check.timestamp

touch /home/milind/crdroid/out/target/common/obj/APPS/FrameworksCoreSystemPropertiesTests_intermediates/jack.check.timestamp

Checking build with Jack: /home/milind/crdroid/out/target/common/obj/APPS/FrameworksGraphicsTests_intermediates/jack.check.timestamp

ERROR: /home/milind/crdroid/frameworks/base/core/tests/utiltests/src/com/android/internal/util/XmlUtilsTest.java:37: Type mismatch: cannot convert from ConcurrentHashMap<String,capture#1-of ?> to HashMap<String,?>

build/core/java.mk:702: recipe for target '/home/milind/crdroid/out/target/common/obj/APPS/FrameworksUtilTests_intermediates/jack.check.timestamp' failed

make: *** [/home/milind/crdroid/out/target/common/obj/APPS/FrameworksUtilTests_intermediates/jack.check.timestamp] Error 4

make: *** Waiting for unfinished jobs....

touch /home/milind/crdroid/out/target/common/obj/APPS/FrameworksGraphicsTests_intermediates/jack.check.timestamp
[Android] Garv Maggu:
Thanks, I successfully compiled the ROM and it worked.

Now, I have compiled AOSCP 3.1.1 and now, AOSCP 3.1.2 has been released and I want to update the downloaded sources, how do I do it? :confused:
[Android] Arvind7352:
If you've download only the Source-Code directly (No Repo Initializing and Syncing Stuff), then it's not possible. You need to re-download the Entire Source Again.

Don't go for Compressed Sources unless if you have a very BAD Internet Connection. If you're doing it anyways, then sync the .repo part of the ROM so that you can update it further.
[Android] Garv Maggu:
No, I have properly initialized and synced the sources as stated in this awesome guide but I don't know how to update the synced sources.
[Android] Arvind7352:
In that case, it's easy.

The Issue in Updating the Source, would be the 'discarding commits' warning. Some sources (which are checked-out) may conflict with the updated patches, so the command outputs the following on completion of checkout.

repository_name: discarding X commits

To make sure you won't face the 'discarding commits' issue, delete the checked-out sources which you think may have been manually edited or performed cherry-picks, and then Start the Sync.

If you face the warning stated above, then find the path of the repository, delete that path, and sync that repository seperately. This time, it would be checked out properly without any issues (you would not see that warning again).
[Android] Garv Maggu:
That means I have to mainly delete the checked-out sources when I have edited and just run the repo sync command again. And if I build after that, my AOSCP version will be 3.1.2?
[Android] Arvind7352:
Yeah. Just start the sync.

If you find 'discarding commits' with a particular repo or two or more then delete those repo's checked out paths, and restart the sync. You're good to go then.
[Android] mohamed786:
[MENTION=6049586]Arvind7352[/MENTION]

Build error :

/bin/bash: 4.4.4: command not found

make: *** [/home/mohamed786/cm11/out/target/product/saltbay/system/build.prop] Error 127

make: *** Deleting file `/home/mohamed786/cm11/out/target/product/saltbay/system/build.prop'

make: *** Waiting for unfinished jobs....

Building TWRP Recovery
[Android] Arvind7352:
Paste the Entire Build Output to a paste service like hastebin.com / pastebin.com

Mention the command you entered to start the build. The ROM you're building, the Device you're building for, the Device's sources.

UPDATE : [MENTION=6099908]mohamed786[/MENTION] I requested for the Device Tree, give the Device tree's GitHub Link.
[Android] mohamed786:
here the log : http://pastebin.com/t9iqp4yM

Building TWRP

Edit :

Commands Use

source build/envsetup.sh

lunch

mka recoveryimage
[Android] mohamed786:
[MENTION=6049586]Arvind7352[/MENTION] Here the device tree Link : Click Me :)
[Android] Arvind7352:
I have created a Pull-Request for the fix. I have also described the reason for the fix. Merge it and start the build.

https://github.com/mohamed786/android_device_dell_saltbay/pull/1

If you don't know how to merge a Pull Request, then do the changes I've done here.

https://github.com/mohamed786/andro...mits/b6e00cbc792d0c12c13e4458585f1591b72fb13f

Try to learn things in GitHub, it's going to be useful in future.

[MENTION=6099908]mohamed786[/MENTION]

Learning Git: https://try.github.io - Interactive Git Learning, Basic.

stackoverflow.com is your teacher, Search for any question and there would be an answer for it.
[Android] mohamed786:
ok tq , im gonna starting build

---------- Post added at 03:47 PM ---------- Previous post was at 03:26 PM ----------

As i have done the changes and building is going smoothly ! Yeah of course ! am new to rom dev ! Soon i will learn Git !

Thanks A Million :) ! You're life Saviour :laugh:

Edit : If Everything Works Fine and if i created the recovery means you will be in Mines Thanks List

Edit2 : Suggest me the best way to learn "git" short period of time !

Edit 3 : [MENTION=6049586]Arvind7352[/MENTION] Got this Build Error :

make[2]: *** No rule to make target `zImage'. Stop.

make[1]: *** [sub-make] Error 2

make[1]: Leaving directory `/media/mohamed786/Elements/A.SourceCode/AndroidDev/A.SourceCodes/cm11/kernel/dell/saltbay'

make: *** [TARGET_KERNEL_BINARIES] Error 2

make: *** Waiting for unfinished jobs....
[Android] TimSchumi:
Seems like you neither have a working kernel source nor a prebuilt kernel. Try searching for the error in the lines before
[Android] TheOddTaco:
made a recovery.img in CM14.1 and it wont boot up. i tried to changed dt.img, prebuilt kernel, kernel configs, and, cmdlines still wont boot up. :crying: here's the device tree: https://github.com/TheOddTaco/android_device_lge_ms330

thanks.
[Android] mohamed786:
I am using stock kernel and I have mentioned it in my board config as well

" kernel/dell/saltbay" does it not deducted or what ??

Let me tell what the PREBUILT KERNEL MEANS(Does it refers to stock kernel)
[Android] arvinquilao:
http://xdaforums.com/showpost.php?p=69182411&postcount=4957
[Android] mohamed786:
as am building zimage

always get this error

scripts/kconfig/conf --silentoldconfig Kconfig
make: *** No rule to make target `zImage'. Stop.
[Android] Garv Maggu:
Getting this error, any ideas?

target thumb C++: gralloc.msm8960 <= hardware/qcom/display/msm8960/libgralloc/gpu.cpp

hardware/qcom/display/msm8960/libgralloc/gpu.cpp:49:5: error: use of undeclared identifier 'allocSize'

allocSize = gralloc_alloc_size;

^

1 error generated.

[ 14% 849/5777] build /home/garvmaggu/du/out/target/product/nicki/obj/SHARED_LIBRARIES/gralloc.msm8960_intermediates/gralloc.o

target thumb C++: gralloc.msm8960 <= hardware/qcom/display/msm8960/libgralloc/gralloc.cpp

ninja: build stopped: subcommand failed.

make: *** [ninja_wrapper] Error 1

real	14m49.280s

user	12m24.920s

sys	0m34.568s

garvmaggu@GarvMaggu:~/du$

Should I declare a header file for allocSize?
[Android] V!KR@M:
Hello, I see people building AOSP and AOSP-CAF roms. Where do they get the source for this? Directly from Google?
[Android] smart-t78:
https://source.android.com/source/downloading.html
[Android] Arvind7352:
Well, if you tried to know the Abbreviation of AOSP, you'd have already answered your question
[Android] Nadeem1122:
Very well done man awesome guide to build custom rom
[Android] Infinity:
Can provide me link for ubuntu 13.10 for intel x64

I am not getting it on google
[Android] nycko:
Why do you need ubuntu 13.10 sir? The latest supported are 16.04.01 (LTS - stable) and 16.10 (dev).
[Android] Infinity:
Oh thanks

Will it work fine..?

I mean the commands and other stuff

Thanks!
[Android] fizbanrapper:
Mine is at android/cm12/device/htc/jewel

My device is the HTC evo 4G LTE (jewel).
[Android] Buda1996:
Hello i would just like to say thanks.

This guide is realy realy great.

As a developer myself i cleared a lot of things now , and understood what i didnt i wish there were more guys like you

and you just inspired me to make a guide on my own.

All other guides are not detailed or contain the most basic stuff or they are fake ,like the guides when u open someones zip and edit it with notepd :D

But this one stands realy out :D

Guys great job.
[Android] fenixus:
can't find Ubuntu 13.10 installer, but Ubuntu website recommends me 14.0.4 LTS, is it OK or a problem down the road of ROM building?
[Android] fizbanrapper:
You're fine either way. I compile just as well on 14.10 as I did 14.04 and 13.10 before it. Might as well get the latest distro.
[Android] fenixus:
ok, cool! because I checked 13.10 and it seems no longer supported, was actually prompting me to upgrade to 14.0.4 LTS. I have 2 VMs in Hyper-V with each Ubuntu release (13.10 & 14.0.4) and trying to get both or either of them up to speed at same time.

I encountered trouble with installation of proper Java JDK tho, below command seems to be not working (bunch of errors and in the end "java -version" command doesn't return java version at all just a list of packages where java component exists).

wget https://launchpad.net/~webupd8team/+archive/ubuntu/java/+files/oracle-java6-installer_6u45-0%7Ewebupd8%7E8_all.deb sudo dpkg -i oracle-java6-installer_6u45-0~webupd8~8_all.deb wget https://launchpad.net/~webupd8team/+archive/ubuntu/java/+files/oracle-java6-set-default_6u45-0%7Ewebupd8%7E8_all.deb sudo dpkg -i oracle-java6-set-default_6u45-0~webupd8~8_all.deb

That happens on either 13.10 (all up to date) and 14.0.4 (up to date as well). Is there a newer version of this command with updates links or something?

EDIT:

ah, never mind, found my answer here

also since I am aiming at Android L, I discovered I am actually supposed to go with Java 7 JDK :)

easy to get with apt-get:

sudo apt-get update && sudo apt-get install openjdk-7-jdk

:D

---------- Post added at 03:24 PM ---------- Previous post was at 02:34 PM ----------

repo setup link for Liquid Smooth if anybody interested :)

https://github.com/LiquidSmooth/android
[Android] jackeagle:
OP Updated with Java V7 Preference :)

Yes you can use any distro :) Guide is based on Ubuntu has i was on it while guide was published :) :)
[Android] fenixus:
all right :)

For now I am sticking to Ubuntu 14.0.4 LTS running in a VM (Hyper-V guest of Win 8.1 x64 Pro), so far so good with environment, but I have trouble with repo sync to Liquid Smooth Lollipop :( not sure why, but I can't sync the work tree now, some manifest is missing, it's for sure related to their latest merge (LatinIME) reflected in default.xml
[Android] Hashbang173:
Repo sync -df

?
[Android] fenixus:
haven't tried it, but I noticed I had an empty folder inputmethods under packages (a left over from yesterday repo sync before they merged different package not from CM), removed it and work tree synced up! :)

Now I need my device, vendor and kernel trees and names ... trying to build for Samsung Galaxy S3 d2tmo (very close to d2att) ...
[Android] coolswap11:
memory issues

Have you got this issue solved. If yes then how?

I have been facing this same issue....

http://pastebin.com/Thascf0v
[Android] GalaticStryder:
Note:*Recompile with*-Xlint:unchecked*for*details.

make:*fork:*Cannot allocate memory

make:*fork:*Cannot allocate memory

collect2:*error:*ld terminated with signal*9[Killed]

Here's your error, you ran out of RAM when the system needed. If you have less than 8GB you will need an Swap partition to relocate the RAM. There are lots of tutorials on the internet. Try it.
[Android] Enddo:
Thank you very much. This is exactly where I needed to look and this let me proceed through the guide.

On an unrelated note, I am about an hour into the middle of the very first build. Everything looked to be going good but one of the times I checked on the terminal, I see text like "some input files use or override a depreciated API. recompile with -Xlint:depreciation for details."

Then some lines say "packages/wallpapers/PhaseBeam/src/com/android/phasebeam/PhaseBeamRS.java uses unchecked or unsafe operations"

Are either of these two things critical? Will 'notes' like this, cause it doesn't say it's an error, just a note, cause the build to fail or result in issues flashing the build on my test Nexus 5? The build has continued even though I have seen multiple lines like that. Those lines are few and far between, but they were common enough for me to catch a few as they were scrolling by
[Android] Enddo:
The build seemed to go smoothly! It only took about an hour and a half and it flashed flawlessly :) I've been going through my test device and everything seems to run as it should. Thank you to everyone who participated in this guide and to everyone who is nice enough to answer my noob questions

The next question is, since I have followed this tutorial from start to the first build, what is the next step that needs to be taken in order to create nightlies?

Do I simply need to do the three commands - "repo sync -j#" and then a ". build/envsetup.sh" and then the "time brunch <codename> -j#" in order to update my sources and create a new nightly?
[Android] fizbanrapper:
What are you compiling and for what device? Not sure what your definition of 'nighties' is and what your really trying to accomplish.

Are you just trying to get your build out to others that have the same device? Or are you trying to be the official maintainer for your ROM and device?

Simple answer to your other question is yes. That is all you need to do.

Keep in mind though that the host has already compiled the full ROM. The next time you go to build, it's going to be a dirty build. The build will pick up a lot of the changes and incorporate them into your build like you'd expect it to, but it won't pick up everything. That's generally ok, but eventually something will break (feature on your device or it won't succeed at compiling the ROM).

Typically you can do dirty builds for weeks at a time, but since lollipop is so new and things are changing so fast, I like to start over with a clean build at least once a week.

To clean out the old files and start over, simply type 'make clean'.
[Android] Amosthecoolboy:
How clear the repo synced files, for example if I have already synced for kit kat or lollipop I want to clear it and sync jellybeans source.
[Android] ab-samy:
Plz help!
[Android] Enddo:
I'm trying to build nightlies for my own test device. In the future I might like to release a custom ROM but that would be the end goal at the very end of the tunnel. I thought that learning to compile my own builds would be a good first step for this end goal.

Thank you very much for the insight. That definitely makes sense. Does the "make clean" command need to be executed in the /home/android directory tree that my CM repo has been sync'd to?

I really am just picking up tips and tricks from all sorts of places and I'm hoping that it becomes natural as I start to actually understand the things that I'm being told to type from these tutorials.

Thank you again for the response. I am entirely grateful for everyone in the XDA community donates their time to respond to questions and to create tutorials like this
[Android] Enddo:
Also, after I do the "make clean" command, do I do the ""repo sync -j#" and then a ". build/envsetup.sh" and then the "time brunch <codename> -j#" commands to start the build over or do I need to start elsewhere in the tutorial?
[Android] fenixus:
Thanks so much for this guide :good:

It was all very informative! Read it all finally and (with help from a fellow member) was able to build an unofficial LiquidSMooth ROM from public sources for my device! :)
[Android] russellvone:
http://pastebin.com/mAD1PMc8

im getting these errors during sync......
[Android] nycko:
It should although i would recommend installing java directly from repositories.

What I do recommend also is to install Ubuntu or other (IE Mint) directly on hard drive and not using Virtual systems. But it's a matter of your computer resources etc.
[Android] Infinity:
Hey there !

I want to install linux ubuntu (any version which is more compatible for development) as my primary OS will you guide me

Thanks!
[Android] nycko:
You should have no problems to do that. There're bunch of walkthroughs, manuals on the internet. Even in the first post of this topic you have step-by-step guide on installing Ubuntu. You have Ubuntu forums etc. If you won't be able to do this by yourself, well, there's no point for you to start with building ROMs
[Android] Infinity:
I got it...

I know how to install it..I am installing it..

Thanks!

Newbie in rom building.. expecting support

Thanks
[Android] Velociraptor_KKP:
Please help me to fix this error

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.10:get (default-cli) on projec

t standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-dependency-plugin:2.10:get failed

: Plugin org.apache.maven.plugins:maven-dependency-plugin:2.10 or one of its dependencies could not be resolved:

Could not find artifact org.codehaus.plexus:plexus-interpolation:jar:1.11 -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1]

target Generated: libart_32 <= art/runtime/indirect_reference_table.h

make: target Generated: libart_32 <= art/runtime/invoke_type.h

*** [/home/kirank_pramanik/android/system/out/target/common/obj/APPS/Gello_intermediates/org.cyanogenmod.gello-4

0.apk] Error 1

make: *** Waiting for unfinished jobs....

Download: /home/kirank_pramanik/android/system/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com

.cyngn.ambient.ambientsdk-1.6.0-147069776-39fe2d07.aar

make: Leaving directory `/home/kirank_pramanik/android/system'

#### make failed to build some targets (01:40 (mm:ss)) ####
[Android] TimSchumi:
Are you sure your defconfig exists at 'kernel/lenovo/msm8916/arch/arm/configs/wt86518-perf_defconfig'?
[Android] Harry8242:
r u asking about msm8916_defconfig.....msm8916 is my device....but there is no file called wt86518_perf_deconfig

update:

i found the files in my github source ...i didnt add the local_manifest yet so it didnt get updated so now i am downloading the updated kernel source ...thanks for your help :)
[Android] Garv Maggu:
Somebody help please..!!

I am still stuck on this error, somebody please help. :(

target thumb C++: gralloc.msm8960 <= hardware/qcom/display/msm8960/libgralloc/gpu.cpp

hardware/qcom/display/msm8960/libgralloc/gpu.cpp:49:5: error: use of undeclared identifier 'allocSize'

allocSize = gralloc_alloc_size;

^

1 error generated.
[Android] HaoZeke:
Your sources are missing or incomplete. You're missing a header file and others... Are you mixing sources?
[Android] TheOddTaco:
using others device for reference. whats missing?
[Android] HaoZeke:
Well I believe it's looking for a unified kernel source... Msm something kernel
[Android] TheOddTaco:
Unified? Like a universal source for any chipset or just msm8909? :confused:

heres the kernel for the device also: https://github.com/TheOddTaco/android_kernel_lge_m1
[Android] HaoZeke:
To debug it you just need to go through the make files... See which directory it's calling and why
[Android] TheOddTaco:
what do you mean? from kernel source or hardware/qcom/media-caf/msm8916?
[Android] HaoZeke:
The media caf folder... Check the android.mk file to figure out what other projects it needs
[Android] Infinity:
getting this error plz help

prakash@hp:~$ sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*
[sudo] password for prakash:
Sorry, try again.
[sudo] password for prakash:
Sorry, try again.
[sudo] password for prakash:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'openjdk-6-jre' for regex 'openjdk-*'
Note, selecting 'openjdk-7-jre' for regex 'openjdk-*'
Package 'openjdk-7-jre' is not installed, so not removed
Package 'openjdk-6-jre' is not installed, so not removed
E: Unable to locate package icedtea-*
E: Couldn't find any package by regex 'icedtea-*'
E: Unable to locate package icedtea6-*
E: Couldn't find any package by regex 'icedtea6-*'
prakash@hp:~$ wget https://launchpad.net/~webupd8team/+archive/ubuntu/java/+files/oracle-java6-installer_6u45-0%7Ewebupd8%7E8_all.deb sudo dpkg -i oracle-java6-installer_6u45-0~webupd8~8_all.deb wget https://launchpad.net/~webupd8team/+archive/ubuntu/java/+files/oracle-java6-set-default_6u45-0%7Ewebupd8%7E8_all.deb sudo dpkg -i oracle-java6-set-default_6u45-0~webupd8~8_all.deb
--2016-11-30 21:20:09-- https://launchpad.net/~webupd8team/+archive/ubuntu/java/+files/oracle-java6-installer_6u45-0%7Ewebupd8%7E8_all.deb
Resolving launchpad.net (launchpad.net)... 91.189.89.223, 91.189.89.222
Connecting to launchpad.net (launchpad.net)|91.189.89.223|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://launchpadlibrarian.net/174682423/oracle-java6-installer_6u45-0~webupd8~8_all.deb [following]
--2016-11-30 21:20:11-- https://launchpadlibrarian.net/174682423/oracle-java6-installer_6u45-0~webupd8~8_all.deb
Resolving launchpadlibrarian.net (launchpadlibrarian.net)... 91.189.89.229, 91.189.89.228
Connecting to launchpadlibrarian.net (launchpadlibrarian.net)|91.189.89.229|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20982 (20K) [application/x-debian-package]
Saving to: ‘oracle-java6-installer_6u45-0~webupd8~8_all.deb.5’

100%[======================================>] 20,982 83.8KB/s in 0.2s

2016-11-30 21:20:12 (83.8 KB/s) - ‘oracle-java6-installer_6u45-0~webupd8~8_all.deb.5’ saved [20982/20982]

--2016-11-30 21:20:12-- http://sudo/
Resolving sudo (sudo)... 218.93.250.18
Connecting to sudo (sudo)|218.93.250.18|:80... failed: Connection timed out.
Retrying.

--2016-11-30 21:22:20-- (try: 2) http://sudo/
Connecting to sudo (sudo)|218.93.250.18|:80...
[Android] Garv Maggu:
http://xdaforums.com/showpost.php?p=44683937&postcount=978

In reference to the above link, can anybody tell me how do I declare the line in mapper.cpp?
[Android] Has.007:
[MENTION=6049586]Arvind7352[/MENTION] [MENTION=5991747]neonkat[/MENTION] [MENTION=7331587]TimSchumi[/MENTION] I'm building Resurrection Remix N version on Ubuntu 15.10 dual booted, with environments setup nd trees as well. I've tried to build 2 times but still get error at this point. I'm pasting the whole output to pastebin so you could have a look at the several warnings I get before failure.

http://pastebin.com/54JzNR4q

Apparently it looks like some memory issue but I don't have it my memory wasn't even used fully, it is 4 gb tho.

Please guide, I look forward to your help. :)

Thankyou very much.