Home > Mobile >  Compile error Build failed with an exception. For answers
Compile error Build failed with an exception. For answers

Time:12-17

Because is the project took over, after installing the Android apk package times the following error generated after the studio environment, seeks the solution
Error: a FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ': otd: externalNativeBuildRelease'.
The Build command failed.
Error while executing process D: \ Android \ LocalAndroidSdk \ cmake \ 3.6.4111459 \ bin \ cmake exe with the arguments {- build D: \ WorkFile \ eMark \ Develop \ CP03 PA3) Platform - Area - 3 \ '03. Source \ 02 Driver \ 04 Android \ otd \. ExternalNativeBuild \ cmake \ release \ mips64 -- target OtdNative}
[1/5] Building CXX object CMakeFiles/OtdNative dir/SRC/main/jni/jni_common CPP. O
[2/5] Building CXX object CMakeFiles/OtdNative dir/SRC/main/jni/OtdSdk CPP. O
[3/5] Building CXX object CMakeFiles/OtdNative dir/SRC/main/jni/OtdLocal CPP. O
[4/5] Building CXX object CMakeFiles/OtdNative dir/SRC/main/jni/jni CPP. O
FAILED: D:\Android\LocalAndroidSdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=mips64el-none-linux-android --gcc-toolchain=D:/Android/LocalAndroidSdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/windows-x86_64 --sysroot=D:/Android/LocalAndroidSdk/ndk-bundle/sysroot -DOtdNative_EXPORTS -isystem D:/Android/LocalAndroidSdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem D:/Android/LocalAndroidSdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/mips64/include -isystem D:/Android/LocalAndroidSdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -isystem D:/Android/LocalAndroidSdk/ndk-bundle/sysroot/usr/include/mips64el-linux-android -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fintegrated-as -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -DALL_OEM_SUPPORTED -O2 -DNDEBUG -fPIC -MD -MT CMakeFiles/OtdNative.dir/src/main/jni/OtdLocal.cpp.o -MF CMakeFiles\OtdNative.dir\src\main\jni\OtdLocal.cpp.o.d -o CMakeFiles/OtdNative.dir/src/main/jni/OtdLocal.cpp.o -c D:\WorkFile\eMark\Develop\CP03.PA3.Platform-Area-3\03.Source\02.Driver\04.Android\otd\src\main\jni\OtdLocal.cpp
Too many path components
FAILED: D:\Android\LocalAndroidSdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=mips64el-none-linux-android --gcc-toolchain=D:/Android/LocalAndroidSdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/windows-x86_64 --sysroot=D:/Android/LocalAndroidSdk/ndk-bundle/sysroot -DOtdNative_EXPORTS -isystem D:/Android/LocalAndroidSdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem D:/Android/LocalAndroidSdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/mips64/include -isystem D:/Android/LocalAndroidSdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -isystem D:/Android/LocalAndroidSdk/ndk-bundle/sysroot/usr/include/mips64el-linux-android -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fintegrated-as -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -DALL_OEM_SUPPORTED -O2 -DNDEBUG -fPIC -MD -MT CMakeFiles/OtdNative.dir/src/main/jni/jni_common.cpp.o -MF CMakeFiles\OtdNative.dir\src\main\jni\jni_common.cpp.o.d -o CMakeFiles/OtdNative.dir/src/main/jni/jni_common.cpp.o -c D:\WorkFile\eMark\Develop\CP03.PA3.Platform-Area-3\03.Source\02.Driver\04.Android\otd\src\main\jni\jni_common.cpp
Too many path components
FAILED: D:\Android\LocalAndroidSdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=mips64el-none-linux-android --gcc-toolchain=D:/Android/LocalAndroidSdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/windows-x86_64 --sysroot=D:/Android/LocalAndroidSdk/ndk-bundle/sysroot -DOtdNative_EXPORTS -isystem D:/Android/LocalAndroidSdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem D:/Android/LocalAndroidSdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/mips64/include -isystem D:/Android/LocalAndroidSdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -isystem D:/Android/LocalAndroidSdk/ndk-bundle/sysroot/usr/include/mips64el-linux-android -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fintegrated-as -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -DALL_OEM_SUPPORTED -O2 -DNDEBUG -fPIC -MD -MT CMakeFiles/OtdNative.dir/src/main/jni/Jni.cpp.o -MF CMakeFiles\OtdNative.dir\src\main\jni\Jni.cpp.o.d -o CMakeFiles/OtdNative.dir/src/main/jni/Jni.cpp.o -c D:\WorkFile\eMark\Develop\CP03.PA3.Platform-Area-3\03.Source\02.Driver\04.Android\otd\src\main\jni\Jni.cpp
Too many path components
nullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related