Android9.0 System compilation error
170/978] including external/google-tv-pairing-protocol/Android.mk …
[171/978] including external/googletest/Android.mk …
build/make/core/base_rules.mk:260: error: external/googletest/googletest: MODULE.TARGET.STATIC_LIBRARIES.libgtest already defined by external/googletest/googletest.
09:42:55 ckati failed with: exit status 1
0;31m#### failed to build some targets (49 seconds) ####
The reason of the error
The compiler server has defined NDK_ROOT environment variable, which conflicts with Android compiler environment variable.
Check whether NDK_ROOT environment variable or SDK_ROOT environment variable is defined.
My compilation server defines NDK_Root environment variable, so echo $NDK_Root outputs the following path:
indicates that the change amount is defined.
Remove the environment variable temporarily
Continue to compile the system.
- Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment
- [Solved] The method getContextPath() from the type HttpServletRequest refers to the missing type String
- Cmake Error The C compiler identification is GNU 7.5.0 — The CXX compiler identification is unknown
- How to Solve QT error: LNK1158: Cannot Run “rc.exe”
- Android Working Directory：NULL Environment：NULL Error
- [Solved] error: failed to run custom build command for `librocksdb-sys v6.17.3`
- flutter | W/zipro(12512): Error opening archive D:\…Invalid file ERROR: dump failed because…
- [Solved] Manifest merger failed: Apps targeting Android 12 and higher are required to specify an explicit
- [Solved] INSTALL_FAILED_DEXOPT (DEX optimization verification failed)
- [Solved] Appium Install Error: Original error: Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variab
- NVM ERROR open \settings.txt: The system cannot find the file specified
- [Solved] Failed to install the following Android SDK packages as some licences have not been accepted
- Android: How to Solve libuv Compile Error
- How to Solve null/hadoopbinary/wintils.exe Error
- Error 2 error c2491: XX: definition of dllimport static data member is not allowed
- [Solved] IDEA Start Project Error: Abnormal build process termination:Could not create the Java Virtual Machine.
- [error record] Android application release package error handling (turn off syntax check log processing release configuration)
- Android 10 open file exception open failed: eacces (permission denied) android:requestLegacyExternalStorage= “true“
- [Solved] IDEA Error: java: Compilation failed: internal java compiler error