Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android studio gradle error #17

Open
harrald04 opened this issue Sep 28, 2018 · 0 comments
Open

Android studio gradle error #17

harrald04 opened this issue Sep 28, 2018 · 0 comments

Comments

@harrald04
Copy link

Hi, can anyone help me with this error? It's my first time installing and using android studio in my computer and this happened:

Build command failed.

Error while executing process C:\Users\Guisinga Family\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HC:\Users\Guisinga Family\AndroidStudioProjects\MyApplication\app -BC:\Users\Guisinga Family\AndroidStudioProjects\MyApplication\app.externalNativeBuild\cmake\release\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-16 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\Guisinga Family\AndroidStudioProjects\MyApplication\app\build\intermediates\cmake\release\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=C:\Users\Guisinga Family\AppData\Local\Android\Sdk\ndk-bundle -DCMAKE_CXX_FLAGS= -DCMAKE_TOOLCHAIN_FILE=C:\Users\Guisinga Family\AppData\Local\Android\Sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=C:\Users\Guisinga Family\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}

-- Check for working C compiler: C:/Users/Guisinga Family/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe

-- Check for working C compiler: C:/Users/Guisinga Family/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- broken

/Users/Guisinga Family/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe" is not able to compile a simple test program.
Open File

It fails with the following output:

Change Dir: C:/Users/Guisinga Family/AndroidStudioProjects/MyApplication/app/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeTmp

Run Build Command:"C:/Users/Guisinga

Family/AppData/Local/Android/Sdk/cmake/3.6.4111459/bin/ninja.exe"

"cmTC_df859"

[1/2] Building C object CMakeFiles/cmTC_df859.dir/testCCompiler.c.o

FAILED:

C:\Users\GUISIN1\AppData\Local\Android\Sdk\NDK-BU1\TOOLCH1\llvm\prebuilt\WINDOW1\bin\clang.exe

--target=armv7-none-linux-androideabi16 --gcc-toolchain="C:/Users/Guisinga

Family/AppData/Local/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64"

--sysroot="C:/Users/Guisinga

Family/AppData/Local/Android/Sdk/ndk-bundle/sysroot" -isystem

C:/Users/Guisinga

Family/AppData/Local/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi

-g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong

-no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16

-mthumb -Wa,--noexecstack -Wformat -Werror=format-security -fPIE -o

CMakeFiles/cmTC_df859.dir/testCCompiler.c.o -c "C:\Users\Guisinga

Family\AndroidStudioProjects\MyApplication\app.externalNativeBuild\cmake\release\armeabi-v7a\CMakeFiles\CMakeTmp\testCCompiler.c"

error: no such file or directory:

'Family/AppData/Local/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi'

ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt

-- Configuring incomplete, errors occurred!

See also "C:/Users/Guisinga Family/AndroidStudioProjects/MyApplication/app/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeOutput.log".

See also "C:/Users/Guisinga Family/AndroidStudioProjects/MyApplication/app/.externalNativeBuild/cmake/release/armeabi-v7a/CMakeFiles/CMakeError.log".

Build command failed.

Error while executing process C:\Users\Guisinga Family\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HC:\Users\Guisinga Family\AndroidStudioProjects\MyApplication\app -BC:\Users\Guisinga Family\AndroidStudioProjects\MyApplication\app.externalNativeBuild\cmake\debug\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-16 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\Guisinga Family\AndroidStudioProjects\MyApplication\app\build\intermediates\cmake\debug\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=C:\Users\Guisinga Family\AppData\Local\Android\Sdk\ndk-bundle -DCMAKE_CXX_FLAGS= -DCMAKE_TOOLCHAIN_FILE=C:\Users\Guisinga Family\AppData\Local\Android\Sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=C:\Users\Guisinga Family\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja}

-- Check for working C compiler: C:/Users/Guisinga Family/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe

-- Check for working C compiler: C:/Users/Guisinga Family/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- broken

/Users/Guisinga Family/AppData/Local/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe" is not able to compile a simple test program.
Open File

It fails with the following output:

Change Dir: C:/Users/Guisinga Family/AndroidStudioProjects/MyApplication/app/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeTmp

Run Build Command:"C:/Users/Guisinga

Family/AppData/Local/Android/Sdk/cmake/3.6.4111459/bin/ninja.exe"

"cmTC_e6acd"

[1/2] Building C object CMakeFiles/cmTC_e6acd.dir/testCCompiler.c.o

FAILED:

C:\Users\GUISIN1\AppData\Local\Android\Sdk\NDK-BU1\TOOLCH1\llvm\prebuilt\WINDOW1\bin\clang.exe

--target=armv7-none-linux-androideabi16 --gcc-toolchain="C:/Users/Guisinga

Family/AppData/Local/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64"

--sysroot="C:/Users/Guisinga

Family/AppData/Local/Android/Sdk/ndk-bundle/sysroot" -isystem

C:/Users/Guisinga

Family/AppData/Local/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi

-g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong

-no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16

-mthumb -Wa,--noexecstack -Wformat -Werror=format-security -fPIE -o

CMakeFiles/cmTC_e6acd.dir/testCCompiler.c.o -c "C:\Users\Guisinga

Family\AndroidStudioProjects\MyApplication\app.externalNativeBuild\cmake\debug\armeabi-v7a\CMakeFiles\CMakeTmp\testCCompiler.c"

error: no such file or directory:

'Family/AppData/Local/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi'

ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMakeLists.txt

-- Configuring incomplete, errors occurred!

See also "C:/Users/Guisinga Family/AndroidStudioProjects/MyApplication/app/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeOutput.log".

See also "C:/Users/Guisinga Family/AndroidStudioProjects/MyApplication/app/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/CMakeError.log".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant