androidandroid-sourcerenderscriptandroid-6.0.1-marshmallow

AOSP render script compile error


I'm trying to build AOSP from source code which is based on Android 6.0.1 for Nexus5 hammerhead. Therefore, the lunch combo is aosp_hammerheader-userdebug

I followed the instruction from AOSP page and prepared the virtual machine on Ubuntu 14.04. After 1 days download, I got the while source code. I just change the jvm heap size with -Xmx2048M. Then I try to compile, the process is ongoing.

After about 1 hour later, I got the compile error with /frameworks/support/v8/renderscript. A lot of error message like following.

ERROR: /home/vadmin/android/AOSP/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/FieldPacker.java:187: android.util cannot be resolved
ERROR: /home/vadmin/android/AOSP/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/FieldPacker.java:188: IllegalArgumentException cannot be resolved to a type
ERROR: /home/vadmin/android/AOSP/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/FieldPacker.java:195: android.util cannot be resolved
ERROR: /home/vadmin/android/AOSP/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/FieldPacker.java:196: IllegalArgumentException cannot be resolved to a type
ERROR: /home/vadmin/android/AOSP/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/RenderScript.java:19: The import java.io cannot be resolved
ERROR: /home/vadmin/android/AOSP/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/RenderScript.java:20: The import java.lang cannot be resolved

It seems missing the very basic library in source. I try to ignore this project, but this renderscript library is the dependency for Gallery2 project. I want this application on my rom.

Also I check the /frameworks/support folder, there is a Gradle project structure, then I use ./gradlew build to compile the /frameworks/support project, it works and show compile successful. After that, I will normal way make -j4 to compile again, it fail again.

Any help or tips for resolve this will be very helpful. Thanks.


Update at Mar 15

Follow the comment from @StephenHines. This issue was solved. Maybe I synced in the middle of a multi-project commit. Thanks to StephenHines


Solution

  • This issue was happened cause maybe I synced in the middle of a multi-project commit. With @StephenHines help, I tried running a top-level repo sync again (i.e. repo sync -c from anywhere in your source tree). Pay attention to if it completes successfully or if it fails (i.e. exits with non-zero error code). Then tried to rebuild (source build/envsetup.sh; lunch aosp_hammerhead-userdebug; m -j16). Then the issue resolved.