That's correct.
As I understand it, yes. Some of those rXX versions are just for device-specific updates.
That's correct.
As I understand it, yes. Some of those rXX versions are just for device-specific updates.
I didn't provide any build/tag for my Nexus 5. I just synced to the newest branch, which was android-6.0.1_r16. Now that I see that list, it doesn't list Nexus 5 next to r16. So does that mean that I need to build it with r11 instead?
As I understand it, yes. Some of those rXX versions are just for device-specific updates.
repo forall -pc 'git log --no-merges --oneline android-6.0.1_r11..android-6.0.1_r16
You are attempting to build with the incorrect version
of java.
Your version is: openjdk version "1.8.0_91" OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-2-b14) OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode).
The required version is: "1.7.x"
What's the PATH ?Another JDK previously installed appearing in your path. Prepend the correct JDK to the beginning of your PATH or remove the problematic JDK.
Hello everybody !
I change my OS from Ubuntu 14.04 to Debian Stretch.
When I start compiling, I've got this error :
However, Google recommends to install openjdk8.Code:You are attempting to build with the incorrect version of java. Your version is: openjdk version "1.8.0_91" OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-2-b14) OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode). The required version is: "1.7.x"
Also here : https://source.android.com/source/building.html#wrong-java-version , it's written :
What's the PATH ?
I'm a "bit" lost.![]()
Java Development Kit (JDK)
Please note, since there are no available supported OpenJDK 8 packages for Ubuntu 14.04, the Ubuntu 15.04 packages must be installed manually. See JDK for Ubuntu LTS 14.04 for precise instructions.
The master branch of Android in AOSP: Ubuntu - OpenJDK 8, Mac OS - jdk 8u45 or newer
Android 5.x (Lollipop) - Android 6.0 (Marshmallow): Ubuntu - OpenJDK 7, Mac OS - jdk-7u71-macosx-x64.dmg
Android 2.3.x (Gingerbread) - Android 4.4.x (KitKat): Ubuntu - Java JDK 6, Mac OS - Java JDK 6
Android 1.5 (Cupcake) - Android 2.2.x (Froyo): Ubuntu - Java JDK 5
I delete the red lines and add the green lines ? (Sorry this noob question)Just comment out or delete these lines and it will build fine with Open 8. You will still get the warning message but it will complete the build and all will be good. The java 8 is for the master branch and N --- but MM 6.XXXXXXX will build fine with Open 8.
I delete the red lines and add the green lines ? (Sorry this noob question)
Ok, I test your solution in a few hours when I come back home.Adding the # simply comments out that line ---> same as deleting. So you could also delete lines 171, 192, 203, and 219 and get the same result.
external/guava/guava/src/com/google/common/reflect/Types.java:317: error: TypeVariableImpl is not abstract and does not override abstract method getAnnotatedBounds() in TypeVariable
private static final class TypeVariableImpl<D extends GenericDeclaration>
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
1 warning
build/core/host_java_library.mk:91*: la recette pour la cible «*out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/javalib.jar*» a échouée
make: *** [out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/javalib.jar] Erreur 41
make: *** Attente des tâches non terminées....
#### make failed to build some targets (17:52 (mm:ss)) ####
Code:external/guava/guava/src/com/google/common/reflect/Types.java:317: error: TypeVariableImpl is not abstract and does not override abstract method getAnnotatedBounds() in TypeVariable private static final class TypeVariableImpl<D extends GenericDeclaration> ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error 1 warning build/core/host_java_library.mk:91*: la recette pour la cible «*out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/javalib.jar*» a échouée make: *** [out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/javalib.jar] Erreur 41 make: *** Attente des tâches non terminées.... #### make failed to build some targets (17:52 (mm:ss)) ####
Any idea ?
java -version
sudo update-alternatives --config java
sudo update-alternatives --config javac
Run each of the following from your linux terminal and post results.
[email protected]:/home/pierre# java --version
Unrecognized option: --version
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[email protected]:/home/pierre# update-alternatives --config java
Il n'existe qu'une «*alternative*» dans le groupe de liens java (qui fournit /usr/bin/java)*:*/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
Rien à configurer.
[email protected]:/home/pierre# update-alternatives --config javac
Il n'existe qu'une «*alternative*» dans le groupe de liens javac (qui fournit /usr/bin/javac)*:*/usr/lib/jvm/java-8-openjdk-amd64/bin/javac
Rien à configurer.
First result seems not good...Code:[email protected]:/home/pierre# java --version Unrecognized option: --version Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. [email protected]:/home/pierre# update-alternatives --config java Il n'existe qu'une «*alternative*» dans le groupe de liens java (qui fournit /usr/bin/java)*:*/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java Rien à configurer. [email protected]:/home/pierre# update-alternatives --config javac Il n'existe qu'une «*alternative*» dans le groupe de liens javac (qui fournit /usr/bin/javac)*:*/usr/lib/jvm/java-8-openjdk-amd64/bin/javac Rien à configurer.
I was wrong sorry should be------> java -version
and you look to be good with the others not sure sorry
[email protected]:~$ java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-2-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
Code:[email protected]:~$ java -version openjdk version "1.8.0_91" OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-2-b14) OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
And yes the others are good, sorry I'm a french noob![]()
android-6.0.1_r41 for hammerhead.Which aosp branch/tag are you trying to build and for which device??
Attach my modded manifest, may be I delete a line......
But I done this before, and no issue
I plan to reisntall ubuntu 14.04 just for compiling. I hope when N will be out, issues will be solved.Sounds like Stretch is still very new and bound to have issues.
Good luck with getting it figured out. Sorry I can't do more to help.
sudo apt-get install openjdk-7-jdk
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo
sudo gedit .bashrc
export PATH=~/bin:$PATH <-(add to end of bashrc)
git config --global user.email "[email protected]"
git config --global user.name "yourpreferredusername"
mkdir ~/AOSP
cd ~/AOSP
repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.0_r1
repo sync
[url]https://developers.google.com/android/nexus/drivers[/url]
source build/envsetup.sh
lunch
make -j8 otapackage