Fixed
Status Update
Comments
mi...@mikehardy.net <mi...@mikehardy.net> #2
This is still happening with gradle version 5.6.1:
NDK Resolution Outcome: Project settings: Gradle model version=5.6.1, NDK version is UNKNOWN
There is a related stackoverflow thread here:https://stackoverflow.com/questions/57609738
If there is any information I could provide that would help diagnose, just ask.
NDK Resolution Outcome: Project settings: Gradle model version=5.6.1, NDK version is UNKNOWN
There is a related stackoverflow thread here:
If there is any information I could provide that would help diagnose, just ask.
uc...@google.com <uc...@google.com> #3
Thank you for your feedback. Team may reach out for more feedback in reproducing or triaging this issue.
mi...@mikehardy.net <mi...@mikehardy.net> #4
There was a comment in the stackoverflow that using Gradle 5.4.1 plus compileSdk 29 worked around it, and that re-importing the project worked around it, but as I mentioned there re-import did not fix for me, and I have not tested the 5.4.1/API29 combo yet. Just for completeness. Cheers
ch...@google.com <ch...@google.com>
jo...@gmail.com <jo...@gmail.com> #5
I have tried the Gradle 5.4.1 plus compileSdk 29 and it didn't work for me. I currently cannot create signed releases, I assume this error is preventing that. Also, this is a React Native 0.60.5 project, but the React Native team has confirmed this is an Android Studio problem.
mi...@mikehardy.net <mi...@mikehardy.net> #6
As a note to the previous commenter I have no trouble creating signed releases at the moment, but it could be that I'm not using any NDK functionality. Just wanted to say that for me at least this issue does not appear to be a blocker
in...@gmail.com <in...@gmail.com> #7
Same issue : *NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN*
Android Studio 3.5
Build #AI-191.8026.42.35.5791312, built on August 8, 2019
JRE: 1.8.0_202-release-1483-b49-5587405 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.12.6
Android Studio 3.5
Build #AI-191.8026.42.35.5791312, built on August 8, 2019
JRE: 1.8.0_202-release-1483-b49-5587405 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.12.6
jo...@google.com <jo...@google.com>
tm...@cruiseline.com <tm...@cruiseline.com> #8
I have run into this issue despite not using the NDK either. I was unable to complete a gradle sync no matter what I tried. I then saw this accepted answer on SO: https://stackoverflow.com/questions/57677075/android-studio-3-5-error-unable-to-resolve-dependency-for-appdebug-compilecl
and that worked for me... I added "www" to the jitpack URL. I hope this helps someone else, where (like for me) other solutions didn't fix this. For what it's worth, that URL had been unchanged for at least 2 years.
and that worked for me... I added "www" to the jitpack URL. I hope this helps someone else, where (like for me) other solutions didn't fix this. For what it's worth, that URL had been unchanged for at least 2 years.
li...@gmail.com <li...@gmail.com> #9
The problem is solved when I updated the Android Gradle Plugin Version from 3.1.4 to 3.4.0 and the Gradle Version from 4.4 to 5.1.1 at the same time
mi...@mikehardy.net <mi...@mikehardy.net> #10
Telling users to "upgrade" from really outdated versions, to only slightly outdated versions that are both 1) not current, and 2) already behind the versions mentioned in the issue does not seem like a solution to the logged problem.
mi...@mikehardy.net <mi...@mikehardy.net> #12
A quick question for any googlers on the issue: what component was fixed when this was resolved (gradle plugin? gradle? android studio? ndk?), so I can know when to retest and/or communicate back to folks on the stackoverflow? Thanks!
jo...@google.com <jo...@google.com> #13
The fix for this went into Android Studio. It looks like the change is present in the 3.6 release branch but it isn't in any publicly available build yet. I assume it will be in the next 3.6 or the one after that.
ch...@google.com <ch...@google.com> #14
The fix will be in Android Studio 3.6 Beta 1.
dk...@gmail.com <dk...@gmail.com> #15
hi, i use the Android Studio 3.6 Beta 1 but still error.
gradle plugin 3.6.0-beta01
gradle 5.6.1
mac pro 10.15
/**********
ERROR: /Users/xxxx/AndroidStudioProjects/testc5/app/src/main/cpp/CMakeLists.txt : C/C++ debug|x86 : CMake Error at /Users/xxxxxxx/Library/Android/sdk/cmake/3.10.2.4988404/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/Users/xxxxxx/Library/Android/sdk/my-ndk/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/xxxxxx/AndroidStudioProjects/testc5/app/.cxx/cmake/debug/x86/CMakeFiles/CMakeTmp
Run Build Command:"/Users/xxxxxxx/Library/Android/sdk/cmake/3.10.2.4988404/bin/ninja" "cmTC_3dcb2"
[1/2] Building C object CMakeFiles/cmTC_3dcb2.dir/testCCompiler.c.o
FAILED: CMakeFiles/cmTC_3dcb2.dir/testCCompiler.c.o
/Users/xxxxxxx/Library/Android/sdk/my-ndk/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=i686-none-linux-android24 --gcc-toolchain=/Users/xxxxxLibrary/Android/sdk/my-ndk/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/xxxxx/Library/Android/sdk/my-ndk/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fPIE -o CMakeFiles/cmTC_3dcb2.dir/testCCompiler.c.o -c testCCompiler.c
dyld: Library not loaded: @rpath/libc++.1.dylib
Referenced from: /Users/xxxxxx/Library/Android/sdk/my-ndk/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang
Reason: image not found
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt
Affected Modules: app
*********/
gradle plugin 3.6.0-beta01
gradle 5.6.1
mac pro 10.15
/**********
ERROR: /Users/xxxx/AndroidStudioProjects/testc5/app/src/main/cpp/CMakeLists.txt : C/C++ debug|x86 : CMake Error at /Users/xxxxxxx/Library/Android/sdk/cmake/3.10.2.4988404/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/Users/xxxxxx/Library/Android/sdk/my-ndk/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/xxxxxx/AndroidStudioProjects/testc5/app/.cxx/cmake/debug/x86/CMakeFiles/CMakeTmp
Run Build Command:"/Users/xxxxxxx/Library/Android/sdk/cmake/3.10.2.4988404/bin/ninja" "cmTC_3dcb2"
[1/2] Building C object CMakeFiles/cmTC_3dcb2.dir/testCCompiler.c.o
FAILED: CMakeFiles/cmTC_3dcb2.dir/testCCompiler.c.o
/Users/xxxxxxx/Library/Android/sdk/my-ndk/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang --target=i686-none-linux-android24 --gcc-toolchain=/Users/xxxxxLibrary/Android/sdk/my-ndk/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/xxxxx/Library/Android/sdk/my-ndk/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -fPIE -o CMakeFiles/cmTC_3dcb2.dir/testCCompiler.c.o -c testCCompiler.c
dyld: Library not loaded: @rpath/libc++.1.dylib
Referenced from: /Users/xxxxxx/Library/Android/sdk/my-ndk/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang
Reason: image not found
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt
Affected Modules: app
*********/
pv...@gmail.com <pv...@gmail.com> #16
Same issue here. Version unknown
mi...@gmail.com <mi...@gmail.com> #17
si...@gmail.com <si...@gmail.com> #18
Gradle sync started with single-variant sync
Gradle sync failed: Received close_notify during handshake (1 m 10 s 917 ms)
NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN
Gradle sync failed: Received close_notify during handshake (1 m 10 s 917 ms)
NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN
kh...@gmail.com <kh...@gmail.com> #19
Facing the same issue:
1:36 PM NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN
1:36 PM NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN
nd...@gmail.com <nd...@gmail.com> #20
Facing the same issue android studio 3.5.3
NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN
NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN
jt...@gmail.com <jt...@gmail.com> #21
NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN me too
rg...@gmail.com <rg...@gmail.com> #22
NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN (Crying)
ab...@gmail.com <ab...@gmail.com> #23
Facing the same issue with Android Studio 3.5.3
NDK Resolution Outcome: Project settings: Gradle model version=6.1.1, NDK version is UNKNOWN
NDK Resolution Outcome: Project settings: Gradle model version=6.1.1, NDK version is UNKNOWN
ta...@gmail.com <ta...@gmail.com> #24
I also facing the same issue : NDK Resolution Outcome: Project settings: Gradle model version=4.4, NDK version is UNKNOWN
be...@gmail.com <be...@gmail.com> #25
This works for me: Go to file >project structure > Click on project >Gradle version ( change it to 5.0) click Apply > Click ok.
ab...@gmail.com <ab...@gmail.com> #26
ok I am going to Try last one and let down here.
ab...@gmail.com <ab...@gmail.com> #27
did not worked for me
st...@gmail.com <st...@gmail.com> #28
This message disappeared after updating Android Studio to version >=3.6 on my side.
Description
AI-191.8026.42.35.5791312, JRE 1.8.0_202-release-1483-b03x64 JetBrains s.r.o, OS Windows 7(amd64) v6.1 Service Pack 1, screens 1366x768
AS: 3.5; Android Gradle Plugin: 3.5.0; Gradle: 5.4.1; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: LLDB 3.1 (revision: 3.1.4508709); CMake: from local.properties: (not specified), latest from SDK: C:\Users\rzz\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin\cmake.exe -version
, from PATH: (not found)
IMPORTANT: Please read