Compilation error while following codelab

147 views
Skip to first unread message

Hassan Rom

unread,
Apr 15, 2022, 11:32:03 AMApr 15
to Android Building
Hello all,

I'm following this codelab https://source.android.com/setup/start but I'm getting the  compilation error below:

Any ideas?

Thanks.
- Hassan


----

FAILED: //frameworks/opt/telephony:telephony-common turbine [common]
Outputs: out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/turbine/telephony-common.jar
Error: exited with code: 1
Command: rm -rf "out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/turbine/classes" && mkdir -p "out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/turbine/classes" && prebuilts/jdk/jdk11/linux-x86/bin/java -XX:OnError="cat hs_err_pid%p.log" -XX:CICompilerCount=6 -XX:+UseDynamicNumberOfGCThreads -jar out/host/linux-x86/framework/turbine.jar --output out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/turbine/telephony-common.jar.tmp --temp_dir "out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/turbine/classes" --sources @out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/turbine/telephony-common.jar.rsp  --source_jars out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/gen/aidl/aidl0.srcjar --javacopts -Xmaxerrs 9999999 -encoding UTF-8 -sourcepath "" -g -XDskipDuplicateBridges=true -XDstringConcat=inline -Xlint:-dep-ann -source 11 -target 11 -- --system out/soong/.intermediates/build/soong/java/core-libraries/legacy-core-platform-api-stubs-system-modules/android_common/system --classpath out/soong/.intermediates/frameworks/base/ext/android_common/turbine-combined/ext.jar out/soong/.intermediates/frameworks/base/framework/android_common/turbine-combined/framework.jar out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio-V1.0-java/android_common/turbine-combined/android.hardware.radio-V1.0-java.jar out/soong/.intermediates/hardware/interfaces/radio/1.1/android.hardware.radio-V1.1-java/android_common/turbine-combined/android.hardware.radio-V1.1-java.jar out/soong/.intermediates/hardware/interfaces/radio/1.2/android.hardware.radio-V1.2-java/android_common/turbine-combined/android.hardware.radio-V1.2-java.jar out/soong/.intermediates/hardware/interfaces/radio/1.3/android.hardware.radio-V1.3-java/android_common/turbine-combined/android.hardware.radio-V1.3-java.jar out/soong/.intermediates/hardware/interfaces/radio/1.4/android.hardware.radio-V1.4-java/android_common/turbine-combined/android.hardware.radio-V1.4-java.jar out/soong/.intermediates/hardware/interfaces/radio/1.5/android.hardware.radio-V1.5-java/android_common/turbine-combined/android.hardware.radio-V1.5-java.jar out/soong/.intermediates/hardware/interfaces/radio/1.6/android.hardware.radio-V1.6-java/android_common/turbine-combined/android.hardware.radio-V1.6-java.jar out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.config-V1-java/android_common/turbine-combined/android.hardware.radio.config-V1-java.jar out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.data-V1-java/android_common/turbine-combined/android.hardware.radio.data-V1-java.jar out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.messaging-V1-java/android_common/turbine-combined/android.hardware.radio.messaging-V1-java.jar out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.modem-V1-java/android_common/turbine-combined/android.hardware.radio.modem-V1-java.jar out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.network-V1-java/android_common/turbine-combined/android.hardware.radio.network-V1-java.jar out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.sim-V1-java/android_common/turbine-combined/android.hardware.radio.sim-V1-java.jar out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.voice-V1-java/android_common/turbine-combined/android.hardware.radio.voice-V1-java.jar out/soong/.intermediates/frameworks/opt/net/voip/voip-common/android_common/turbine-combined/voip-common.jar out/soong/.intermediates/frameworks/opt/net/ims/ims-common/android_common/turbine-jarjar/ims-common.jar out/soong/.intermediates/tools/platform-compat/java/android/compat/annotation/unsupportedappusage/android_common/turbine-combined/unsupportedappusage.jar out/soong/.intermediates/hardware/interfaces/radio/config/1.0/android.hardware.radio.config-V1.0-java-shallow/android_common/turbine-combined/android.hardware.radio.config-V1.0-java-shallow.jar out/soong/.intermediates/hardware/interfaces/radio/config/1.1/android.hardware.radio.config-V1.1-java-shallow/android_common/turbine-combined/android.hardware.radio.config-V1.1-java-shallow.jar out/soong/.intermediates/hardware/interfaces/radio/config/1.2/android.hardware.radio.config-V1.2-java-shallow/android_common/turbine-combined/android.hardware.radio.config-V1.2-java-shallow.jar out/soong/.intermediates/hardware/interfaces/radio/config/1.3/android.hardware.radio.config-V1.3-java-shallow/android_common/turbine-combined/android.hardware.radio.config-V1.3-java-shallow.jar out/soong/.intermediates/hardware/interfaces/radio/deprecated/1.0/android.hardware.radio.deprecated-V1.0-java-shallow/android_common/turbine-combined/android.hardware.radio.deprecated-V1.0-java-shallow.jar out/soong/.intermediates/packages/services/Telephony/ecc/conversion_toolset_v1/proto/ecc-protos-lite/android_common/turbine-jarjar/ecc-protos-lite.jar out/soong/.intermediates/external/libphonenumber/libphonenumber-nogeocoder/android_common/turbine-combined/libphonenumber-nogeocoder.jar out/soong/.intermediates/system/libsysprop/srcs/PlatformProperties/android_common/turbine-combined/PlatformProperties.jar out/soong/.intermediates/frameworks/libs/net/common/net-utils-framework-common/android_common/turbine-jarjar/net-utils-framework-common.jar out/soong/.intermediates/frameworks/opt/telephony/proto/telephony-protos/android_common/turbine-jarjar/telephony-protos.jar out/soong/.intermediates/frameworks/libs/modules-utils/java/com/android/modules/utils/build/modules-utils-build_system/android_common/turbine-combined/modules-utils-build_system.jar out/soong/.intermediates/frameworks/base/core/java/modules-utils-statemachine/android_common/turbine-combined/modules-utils-statemachine.jar && prebuilts/build-tools/linux-x86/bin/ziptime out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/turbine/telephony-common.jar.tmp && (if cmp -s out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/turbine/telephony-common.jar.tmp out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/turbine/telephony-common.jar ; then rm out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/turbine/telephony-common.jar.tmp ; else mv out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/turbine/telephony-common.jar.tmp out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/turbine/telephony-common.jar ; fi )
Output:
frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/EuiccController.java:976: error: could not resolve IResultCallback
            String callingPackage, IResultCallback callback) {
                                   ^
frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/EuiccController.java:982: error: could not resolve IResultCallback
            boolean forceDeactivateSim, String callingPackage, IResultCallback callback) {
                                                               ^
frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/EuiccController.java:1062: error: could not resolve IResultCallback
    public IResultCallback getCallbackFromPendingIntent(PendingIntent pi) {
           ^
frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/EuiccController.java:1073: error: could not resolve IResultCallback
            final IResultCallback callback) {
                  ^
frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/EuiccController.java:1085: error: could not resolve IResultCallback
            final String callingPackage, final IResultCallback callback) {
                                               ^



FAILED: //frameworks/opt/telephony:telephony-common javac [common]
Outputs: out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/telephony-common.jar
Error: exited with code: 1
Command: rm -rf "out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/classes" "out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/anno" "out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/srcjars" "out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/telephony-common.jar" && mkdir -p "out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/classes" "out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/anno" "out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/srcjars" && out/host/linux-x86/bin/zipsync -d out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/srcjars -l out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/srcjars/list -f "*.java" out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/gen/aidl/aidl0.srcjar && (if [ -s out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/srcjars/list ] || [ -s out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/telephony-common.jar.rsp ] ; then out/host/linux-x86/bin/soong_javac_wrapper prebuilts/jdk/jdk11/linux-x86/bin/javac -J-Xmx2048M -J-XX:OnError="cat hs_err_pid%p.log" -J-XX:CICompilerCount=6 -J-XX:+UseDynamicNumberOfGCThreads -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -Xmaxerrs 9999999 -encoding UTF-8 -sourcepath "" -g -XDskipDuplicateBridges=true -XDstringConcat=inline -processorpath out/soong/.intermediates/tools/platform-compat/java/android/processor/compat/unsupportedappusage/unsupportedappusage-annotation-processor/linux_glibc_common/withres/unsupportedappusage-annotation-processor.jar -processor android.processor.compat.unsupportedappusage.UnsupportedAppUsageProcessor -Xlint:-dep-ann --system=out/soong/.intermediates/build/soong/java/core-libraries/legacy-core-platform-api-stubs-system-modules/android_common/system -classpath out/soong/.intermediates/frameworks/base/ext/android_common/turbine-combined/ext.jar:out/soong/.intermediates/frameworks/base/framework/android_common/turbine-combined/framework.jar:out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio-V1.0-java/android_common/turbine-combined/android.hardware.radio-V1.0-java.jar:out/soong/.intermediates/hardware/interfaces/radio/1.1/android.hardware.radio-V1.1-java/android_common/turbine-combined/android.hardware.radio-V1.1-java.jar:out/soong/.intermediates/hardware/interfaces/radio/1.2/android.hardware.radio-V1.2-java/android_common/turbine-combined/android.hardware.radio-V1.2-java.jar:out/soong/.intermediates/hardware/interfaces/radio/1.3/android.hardware.radio-V1.3-java/android_common/turbine-combined/android.hardware.radio-V1.3-java.jar:out/soong/.intermediates/hardware/interfaces/radio/1.4/android.hardware.radio-V1.4-java/android_common/turbine-combined/android.hardware.radio-V1.4-java.jar:out/soong/.intermediates/hardware/interfaces/radio/1.5/android.hardware.radio-V1.5-java/android_common/turbine-combined/android.hardware.radio-V1.5-java.jar:out/soong/.intermediates/hardware/interfaces/radio/1.6/android.hardware.radio-V1.6-java/android_common/turbine-combined/android.hardware.radio-V1.6-java.jar:out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.config-V1-java/android_common/turbine-combined/android.hardware.radio.config-V1-java.jar:out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.data-V1-java/android_common/turbine-combined/android.hardware.radio.data-V1-java.jar:out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.messaging-V1-java/android_common/turbine-combined/android.hardware.radio.messaging-V1-java.jar:out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.modem-V1-java/android_common/turbine-combined/android.hardware.radio.modem-V1-java.jar:out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.network-V1-java/android_common/turbine-combined/android.hardware.radio.network-V1-java.jar:out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.sim-V1-java/android_common/turbine-combined/android.hardware.radio.sim-V1-java.jar:out/soong/.intermediates/hardware/interfaces/radio/aidl/android.hardware.radio.voice-V1-java/android_common/turbine-combined/android.hardware.radio.voice-V1-java.jar:out/soong/.intermediates/frameworks/opt/net/voip/voip-common/android_common/turbine-combined/voip-common.jar:out/soong/.intermediates/frameworks/opt/net/ims/ims-common/android_common/turbine-jarjar/ims-common.jar:out/soong/.intermediates/tools/platform-compat/java/android/compat/annotation/unsupportedappusage/android_common/turbine-combined/unsupportedappusage.jar:out/soong/.intermediates/hardware/interfaces/radio/config/1.0/android.hardware.radio.config-V1.0-java-shallow/android_common/turbine-combined/android.hardware.radio.config-V1.0-java-shallow.jar:out/soong/.intermediates/hardware/interfaces/radio/config/1.1/android.hardware.radio.config-V1.1-java-shallow/android_common/turbine-combined/android.hardware.radio.config-V1.1-java-shallow.jar:out/soong/.intermediates/hardware/interfaces/radio/config/1.2/android.hardware.radio.config-V1.2-java-shallow/android_common/turbine-combined/android.hardware.radio.config-V1.2-java-shallow.jar:out/soong/.intermediates/hardware/interfaces/radio/config/1.3/android.hardware.radio.config-V1.3-java-shallow/android_common/turbine-combined/android.hardware.radio.config-V1.3-java-shallow.jar:out/soong/.intermediates/hardware/interfaces/radio/deprecated/1.0/android.hardware.radio.deprecated-V1.0-java-shallow/android_common/turbine-combined/android.hardware.radio.deprecated-V1.0-java-shallow.jar:out/soong/.intermediates/packages/services/Telephony/ecc/conversion_toolset_v1/proto/ecc-protos-lite/android_common/turbine-jarjar/ecc-protos-lite.jar:out/soong/.intermediates/external/libphonenumber/libphonenumber-nogeocoder/android_common/turbine-combined/libphonenumber-nogeocoder.jar:out/soong/.intermediates/system/libsysprop/srcs/PlatformProperties/android_common/turbine-combined/PlatformProperties.jar:out/soong/.intermediates/frameworks/libs/net/common/net-utils-framework-common/android_common/turbine-jarjar/net-utils-framework-common.jar:out/soong/.intermediates/frameworks/opt/telephony/proto/telephony-protos/android_common/turbine-jarjar/telephony-protos.jar:out/soong/.intermediates/frameworks/libs/modules-utils/java/com/android/modules/utils/build/modules-utils-build_system/android_common/turbine-combined/modules-utils-build_system.jar:out/soong/.intermediates/frameworks/base/core/java/modules-utils-statemachine/android_common/turbine-combined/modules-utils-statemachine.jar -source 11 -target 11 -d out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/classes -s out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/anno @out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/telephony-common.jar.rsp @out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/srcjars/list ; fi ) && out/host/linux-x86/bin/soong_zip -jar -o out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/telephony-common.jar -C out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/classes -D out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/classes && rm -rf "out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/javac/srcjars"
Output:
[1m [35mwarning: [0m [1m Supported source version 'RELEASE_9' from annotation processor 'android.processor.compat.unsupportedappusage.UnsupportedAppUsageProcessor' less than -source '11' [0m
[1mframeworks/opt/telephony/src/java/com/android/internal/telephony/euicc/EuiccController.java:976: [31merror: [0m [1m cannot find symbol [0m
            String callingPackage, IResultCallback callback) {
[1m                                   [32m^ [0m [1m [0m
  symbol:   class IResultCallback
  location: class EuiccController
[1mframeworks/opt/telephony/src/java/com/android/internal/telephony/euicc/EuiccController.java:982: [31merror: [0m [1m cannot find symbol [0m
            boolean forceDeactivateSim, String callingPackage, IResultCallback callback) {
[1m                                                               [32m^ [0m [1m [0m
  symbol:   class IResultCallback
  location: class EuiccController
[1mframeworks/opt/telephony/src/java/com/android/internal/telephony/euicc/EuiccController.java:1062: [31merror: [0m [1m cannot find symbol [0m
    public IResultCallback getCallbackFromPendingIntent(PendingIntent pi) {
[1m           [32m^ [0m [1m [0m
  symbol:   class IResultCallback
  location: class EuiccController
[1mframeworks/opt/telephony/src/java/com/android/internal/telephony/euicc/EuiccController.java:1073: [31merror: [0m [1m cannot find symbol [0m
            final IResultCallback callback) {
[1m                   [32m^ [0m [1m [0m
  symbol:   class IResultCallback
  location: class EuiccController
[1mframeworks/opt/telephony/src/java/com/android/internal/telephony/euicc/EuiccController.java:1085: [31merror: [0m [1m cannot find symbol [0m
            final String callingPackage, final IResultCallback callback) {
[1m                                               [32m^ [0m [1m [0m
  symbol:   class IResultCallback
  location: class EuiccController
5 errors
1 warning


Dan Willemsen

unread,
Apr 15, 2022, 11:43:53 AMApr 15
to android-...@googlegroups.com
I'd suggest syncing your source tree and trying to build again -- it appears that you have this frameworks/base change, but not this telephony change that was submitted in the same topic.

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/51f8aa52-ef65-4296-a157-05513763a82fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages