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.
- [Solved] CMake Error Cannot specify link libraries for target “variational“ which is not built by this projec
- [Solved] target_link_libraries error: a missing vtable usually means the first non-inline virtual member function has no definition.
- [Solved] pytorch CrossEntropyLoss Error: RuntimeError: 1D target tensor expected, multi-target not supported
- Error 2 error c2491: XX: definition of dllimport static data member is not allowed
- [Solved] C++ Compile: error LNK2019: unresolved external “XX“
- DM Install Error: error while loading shared libraries: libdmnsort.so:
- [Solved] Webpack error static heartbeat interval = 1000
- [Solved] Docker Error: driver failed programming external connectivity on endpoint
- [Solved] Android Studio Error: ERROR: Cause: executing external native build for cmake
- [Solved] Bindingadapter error and needs to be static
- [Solved] Disconnected from the target VM, address : ‘127.0.0.1:6847’ , transport : ‘socket’
- [Solved] docker: Error response from daemon: driver failed programming external connectivity on endpoint mysql-test …
- [Solved] Docker: Error response from daemon: driver failed programming external connectivity on endpoint mysq
- [Solved] “errmsg” : “Got invalid BSON from external server while reading from cursor
- Matlab Raspberry Pi Error: External Mode Open Protocol Connect command failed
- [Solved] unesolved external symbol _imp_fprintf referenced in funciton _showerror
- [Solved] Visual studio 2022 error LNK2019: unable to resolve external symbol for
- Eclipse Godson Error: Makefile:recipe for target ‘clean‘ failed
- Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen is reported when docker port mapping or starting the container
- error LNK2019: Unresolvable external symbols “__declspec(dllimport) public: int __thiscall QString::toWCharArray(wchar_t