title: Error: VNDK library: libandroid_net's ABI has EXTENDING CHANGES
body: <p>I am setting up an environment to run AOSP code on Ubuntu 18.04.1 LTS and got the error "error: VNDK library: libandroid_net's ABI has EXTENDING CHANGES". Please help me to resolve this. I have searched for hours but didn't get the solution.</p>
  
  <p>I have done following things:</p>
  
  <ol>
  <li>Installed required packages: <code>sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip</code></li>
  <li>Installed community-maintained default set of udev rules for all Android devices: <code>apt-get install adb</code></li>
  <li>Install repo: <a href="https://source.android.com/setup/build/downloading.html" rel="nofollow noreferrer">https://source.android.com/setup/build/downloading.html</a>
  
  <ul>
  <li>mkdir ~/bin</li>
  <li>PATH=~/bin:$PATH</li>
  <li>curl <a href="https://storage.googleapis.com/git-repo-downloads/repo" rel="nofollow noreferrer">https://storage.googleapis.com/git-repo-downloads/repo</a> > ~/bin/repo</li>
  <li>chmod a+x ~/bin/repo</li>
  </ul></li>
  <li>Initializing a Repo client
  
  <ul>
  <li>mkdir WORK</li>
  <li>cd WORK</li>
  <li>git config --global user.name "Your Name"</li>
  <li>git config --global user.email "you@example.com"</li>
  <li>repo init -u <a href="https://android.googlesource.com/platform/manifest" rel="nofollow noreferrer">https://android.googlesource.com/platform/manifest</a></li>
  </ul></li>
  <li>Installed pixel 3 XL binaries which include google-devices and qcom blueline. Used Extractor and ./*.sh command to extract them.</li>
  <li>Copied qcom extracted vendor folder into Source Code and then copied pixel 3 xl vendor folder. Meged and replaced in all dialogs.</li>
  <li>Run <code>make clobber</code> to clean the build directory.</li>
  <li>Run <code>. build/envsetup.sh</code> to initialize the environment.</li>
  <li>Run <code>lunch aosp_arm-eng</code> to select your run target as asop_arm BUILD with eng BUILDTYPE.</li>
  <li>Run <code>make -j16</code> to build the code.</li>
  <li>Got build error: 
  
  <ul>
  <li><code>error: VNDK library: libandroid_net's ABI has EXTENDING CHANGES</code></li>
  <li><code>OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000e7400000, 83886080, 0) failed; error='Not enough space' (errno=12)</code></li>
  <li><code>OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000cac00000, 73400320, 0) failed; error='Not enough space' (errno=12)</code></li>
  </ul></li>
  </ol>
  
  <p>For 'Not enough space' error: I am setting cache and configuring jack</p>
  
  <ul>
  <li><code>export USE_CCACHE=1</code> to enable compiler cache</li>
  <li>Failed to do <code>prebuilts/misc/linux-x86/ccache/ccache -M 15G</code> because there is no ccache folder exists.</li>
  <li><code>export ANDROID_JACK_VM_ARGS="-Xmx4g -Dfile.encoding=UTF-8 -XX:+TieredCompilation"</code> to configure Jack.</li>
  </ul>
  
  <p>For resolving the VNDK issue I am not sure by may be binaries I have included are not correct so I have deleted the vendor folder that contains Pixel 3 XL binaries.</p>
  
  <p>I am a newbie for this task and just started a week ago to look into this.
  Please suggest.
  Thank you in advance.</p>