Ошибка Java .lang возникла при компиляции исходного кода Android в ubuntu 20.04.1, переустановка не может ее решить - proUbuntu
0 голосов
/ 21 августа

Я пытаюсь собрать этот Android исходный код на Ubuntu 20.04 fo r Lineage OS на телефоне Huawei fo r HWJMM (Hono r 6 C Pro o r Hono r V9 Play).

Теперь у меня есть исходный код Android и я создаю r двоичные файлы, но когда я запускаю

brunch jimmy

компиляция останавливается из-за ошибки r в течение 2 минут.

Последние несколько строк журнала показывают, что компиляция обнаружила фатальную ошибку r,

Fatal Error : Unable to find package java.lang in classpath or bootclasspath

информация, найденная в Google, гласит, что

export CLASSPATH=(android.jar)

можно использовать для решения проблемы, но это не работает для r меня.

I также пытался переустановить openjdk, но это тоже не сработало.

Итак, как исправить эту ошибку r?

Полный журнал здесь: Ubuntu PastaBin

eden@edenjohnson-ubuntu:/media/eden/DATA/WORKING_DIRECTORY$ brunch jimmy
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/huawei/jimmy

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20200821-UNOFFICIAL-jimmy
TARGET_PRODUCT=lineage_jimmy
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-42-generic-x86_64-with-Ubuntu-20.04-focal
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/media/eden/DATA/WORKING_DIRECTORY/out
============================================
make: Entering directory '/media/eden/DATA/WORKING_DIRECTORY'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20200821-UNOFFICIAL-jimmy
TARGET_PRODUCT=lineage_jimmy
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-42-generic-x86_64-with-Ubuntu-20.04-focal
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/media/eden/DATA/WORKING_DIRECTORY/out
============================================
Running kati to generate build-lineage_jimmy.ninja...
Environment variable BUILD_NUMBER was modified (c3829d889c => fd23e44101), regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20200821-UNOFFICIAL-jimmy
TARGET_PRODUCT=lineage_jimmy
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-42-generic-x86_64-with-Ubuntu-20.04-focal
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/media/eden/DATA/WORKING_DIRECTORY/out
============================================
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
find: '/media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates': No such file or directory
vendor/cm/build/tasks/kernel.mk:159: ***************************************************************
vendor/cm/build/tasks/kernel.mk:160: * Using prebuilt kernel binary instead of source              *
vendor/cm/build/tasks/kernel.mk:161: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED                *
vendor/cm/build/tasks/kernel.mk:162: * Please configure your device to download the kernel         *
vendor/cm/build/tasks/kernel.mk:163: * source repository to kernel/huawei/jimmy
vendor/cm/build/tasks/kernel.mk:164: * for more information                                        *
vendor/cm/build/tasks/kernel.mk:165: ***************************************************************
build/core/Makefile:34: warning: overriding commands for target `/media/eden/DATA/WORKING_DIRECTORY/out/target/product/jimmy/system/lib/libaudiopolicymanager.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/media/eden/DATA/WORKING_DIRECTORY/out/target/product/jimmy/system/lib/libaudiopolicymanager.so'
build/core/Makefile:34: warning: overriding commands for target `/media/eden/DATA/WORKING_DIRECTORY/out/target/product/jimmy/system/lib/libcurl.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/media/eden/DATA/WORKING_DIRECTORY/out/target/product/jimmy/system/lib/libcurl.so'
build/core/Makefile:34: warning: overriding commands for target `/media/eden/DATA/WORKING_DIRECTORY/out/target/product/jimmy/system/lib/libnfc_ndef.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/media/eden/DATA/WORKING_DIRECTORY/out/target/product/jimmy/system/lib/libnfc_ndef.so'
build/core/Makefile:34: warning: overriding commands for target `/media/eden/DATA/WORKING_DIRECTORY/out/target/product/jimmy/system/lib64/libaudiopolicymanager.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/media/eden/DATA/WORKING_DIRECTORY/out/target/product/jimmy/system/lib64/libaudiopolicymanager.so'
build/core/Makefile:34: warning: overriding commands for target `/media/eden/DATA/WORKING_DIRECTORY/out/target/product/jimmy/system/lib64/libnfc_ndef.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/media/eden/DATA/WORKING_DIRECTORY/out/target/product/jimmy/system/lib64/libnfc_ndef.so'
build/core/Makefile:34: warning: overriding commands for target `/media/eden/DATA/WORKING_DIRECTORY/out/target/product/jimmy/system/vendor/lib/mediadrm/libmockdrmcryptoplugin.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/media/eden/DATA/WORKING_DIRECTORY/out/target/product/jimmy/system/vendor/lib/mediadrm/libmockdrmcryptoplugin.so'
build/core/Makefile:34: warning: overriding commands for target `/media/eden/DATA/WORKING_DIRECTORY/out/target/product/jimmy/system/vendor/lib64/mediadrm/libmockdrmcryptoplugin.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/media/eden/DATA/WORKING_DIRECTORY/out/target/product/jimmy/system/vendor/lib64/mediadrm/libmockdrmcryptoplugin.so'
Starting build with ninja
ninja: Entering directory `.'
[  0% 81/47902] target Java: libphonenumber-platform (/media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/libphonenumber-platform_intermediates/classes)
FAILED: /bin/bash /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/libphonenumber-platform_intermediates/classes-full-debug.jar.rsp
Fatal Error: Unable to find package java.lang in classpath or bootclasspath
[  0% 81/47902] target Java: conscrypt (/media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes)
FAILED: /bin/bash -c "(rm -f /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes-full-debug.jar ) && (rm -rf /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes ) && (mkdir -p /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/ ) && (mkdir -p /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes ) && (for f in ; do if [ ! -f \$f ]; then echo Missing file \$f; exit 1; fi; unzip -qo \$f -d /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes; done ) && (rm -rf /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes/META-INF ) && (rm -f /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes/java-source-list ) && (touch /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes/java-source-list ) && (echo -n 'external/conscrypt/src/main/java/org/conscrypt/AbstractSessionContext.java external/conscrypt/src/main/java/org/conscrypt/AddressUtils.java external/conscrypt/src/main/java/org/conscrypt/ByteArray.java external/conscrypt/src/main/java/org/conscrypt/ChainStrengthAnalyzer.java external/conscrypt/src/main/java/org/conscrypt/ClientSessionContext.java external/conscrypt/src/main/java/org/conscrypt/CryptoUpcalls.java external/conscrypt/src/main/java/org/conscrypt/DefaultSSLContextImpl.java external/conscrypt/src/main/java/org/conscrypt/DuckTypedPSKKeyManager.java external/conscrypt/src/main/java/org/conscrypt/FileClientSessionCache.java external/conscrypt/src/main/java/org/conscrypt/GCMParameters.java external/conscrypt/src/main/java/org/conscrypt/KeyManagerFactoryImpl.java external/conscrypt/src/main/java/org/conscrypt/KeyManagerImpl.java external/conscrypt/src/main/java/org/conscrypt/NativeCrypto.java external/conscrypt/src/main/java/org/conscrypt/NativeRef.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLBIOInputStream.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLBIOSink.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLBIOSource.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLCipher.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLCipherRSA.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLContextImpl.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLECDHKeyAgreement.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLECGroupContext.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLECKeyFactory.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLECKeyPairGenerator.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLECPointContext.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLECPrivateKey.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLECPublicKey.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLEngine.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLEngineImpl.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLExtendedSessionImpl.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLKey.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLKeyHolder.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLMac.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLMessageDigestJDK.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLProvider.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLRSAKeyFactory.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLRSAKeyPairGenerator.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLRSAPrivateCrtKey.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLRSAPrivateKey.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLRSAPublicKey.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLRandom.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLServerSocketFactoryImpl.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLServerSocketImpl.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLSessionImpl.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLSignature.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLSignatureRawRSA.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLSocketFactoryImpl.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLSocketImpl.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLSocketImplWrapper.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLX509CRL.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLX509CRLEntry.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLX509CertPath.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLX509Certificate.java external/conscrypt/src/main/java/org/conscrypt/OpenSSLX509CertificateFactory.java external/conscrypt/src/main/java/org/conscrypt/PSKKeyManager.java external/conscrypt/src/main/java/org/conscrypt/SSLClientSessionCache.java external/conscrypt/src/main/java/org/conscrypt/SSLNullSession.java external/conscrypt/src/main/java/org/conscrypt/SSLParametersImpl.java external/conscrypt/src/main/java/org/conscrypt/SSLRecordProtocol.java external/conscrypt/src/main/java/org/conscrypt/SSLServerSessionCache.java external/conscrypt/src/main/java/org/conscrypt/ServerSessionContext.java external/conscrypt/src/main/java/org/conscrypt/X509PublicKey.java external/conscrypt/src/main/java/org/conscrypt/ct/CTConstants.java external/conscrypt/src/main/java/org/conscrypt/ct/CTLogInfo.java external/conscrypt/src/main/java/org/conscrypt/ct/CTLogStore.java external/conscrypt/src/main/java/org/conscrypt/ct/CTLogStoreImpl.java external/conscrypt/src/main/java/org/conscrypt/ct/CTVerificationResult.java external/conscrypt/src/main/java/org/conscrypt/ct/CTVerifier.java external/conscrypt/src/main/java/org/conscrypt/ct/CertificateEntry.java external/conscrypt/src/main/java/org/conscrypt/ct/DigitallySigned.java external/conscrypt/src/main/java/org/conscrypt/ct/KnownLogs.java external/conscrypt/src/main/java/org/conscrypt/ct/Serialization.java external/conscrypt/src/main/java/org/conscrypt/ct/SerializationException.java external/conscrypt/src/main/java/org/conscrypt/ct/SignedCertificateTimestamp.java external/conscrypt/src/main/java/org/conscrypt/ct/VerifiedSCT.java external/conscrypt/src/main/java/org/conscrypt/util/ArrayUtils.java external/conscrypt/src/main/java/org/conscrypt/util/EmptyArray.java external/conscrypt/src/platform/java/org/conscrypt/CertBlacklist.java external/conscrypt/src/platform/java/org/conscrypt/CertPinManager.java external/conscrypt/src/platform/java/org/conscrypt/CertificatePriorityComparator.java external/conscrypt/src/platform/java/org/conscrypt/Hex.java external/conscrypt/src/platform/java/org/conscrypt/JSSEProvider.java external/conscrypt/src/platform/java/org/conscrypt/NativeCryptoJni.java external/conscrypt/src/platform/java/org/conscrypt/PinEntryException.java external/conscrypt/src/platform/java/org/conscrypt/PinFailureLogger.java external/conscrypt/src/platform/java/org/conscrypt/PinListEntry.java external/conscrypt/src/platform/java/org/conscrypt/PinManagerException.java external/conscrypt/src/platform/java/org/conscrypt/Platform.java external/conscrypt/src/platform/java/org/conscrypt/TrustManagerFactoryImpl.java external/conscrypt/src/platform/java/org/conscrypt/TrustManagerImpl.java external/conscrypt/src/platform/java/org/conscrypt/TrustedCertificateIndex.java external/conscrypt/src/platform/java/org/conscrypt/TrustedCertificateKeyStoreSpi.java external/conscrypt/src/platform/java/org/conscrypt/TrustedCertificateStore.java /media/eden/DATA/WORKING_DIRECTORY/out/target/common/gen/conscrypt/NativeConstants.java ' >> /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes/java-source-list ) && (if [ -d \"/media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/src\" ]; then find /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/src -name '*.java' -and -not -name '.*' >> /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes/java-source-list; fi ) && (tr ' ' '\\n' < /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes/java-source-list | build/tools/normalize_path.py | sort -u > /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes/java-source-list-uniq ) && (if [ -s /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes/java-source-list-uniq ] ; then javac -J-Xmx1024M -Xmaxerrs 9999999 -encoding UTF-8  -bootclasspath \"\" -classpath /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar:/media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes.jar  -extdirs \"\" -d /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes -g -Xmaxwarns 9999999 -source 1.7 -target 1.7 \\@/media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes/java-source-list-uniq || ( rm -rf /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes ; exit 41 ) fi ) && (rm -f /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes/java-source-list ) && (rm -f /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes/java-source-list-uniq ) && (jar -cf /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes-full-debug.jar -C /media/eden/DATA/WORKING_DIRECTORY/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes . )"
Fatal Error: Unable to find package java.lang in classpath or bootclasspath
[  0% 81/47902] host Java: jarjar (/media/eden/DATA/WORKING_DIRECTORY/out/host/common/obj/JAVA_LIBRARIES/jarjar_intermediates/classes)
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/media/eden/DATA/WORKING_DIRECTORY'

#### make failed to build some targets (02:00 (mm:ss)) ####  
...