Fixed
Status Update
Comments
[Deleted User] <[Deleted User]> #2
Also, this seems to be general CLion C++ breakage -- editing C++ files
no longer shows options when typing etc. So some serious problems with
C++ typeahead and navigation which broke recently.
no longer shows options when typing etc. So some serious problems with
C++ typeahead and navigation which broke recently.
[Deleted User] <[Deleted User]> #3
Error message popup after clicking native function decl in java file:
"Cannot resolve corresponding JNI function ..."
Ctrl-hover over native function decl in java file shows popup:
"Show usages of method ..."
but instead should present C++ JNI function decl/defn to jump to in C++ source file
"Cannot resolve corresponding JNI function ..."
Ctrl-hover over native function decl in java file shows popup:
"Show usages of method ..."
but instead should present C++ JNI function decl/defn to jump to in C++ source file
al...@gmail.com <al...@gmail.com> #4
Same error here, on my case:
I updated to version 2.3.0-beta2 and everything seemed fine, then updated NDK to 14.0.3529234rc1. then I restarted next time I opened my project JNI function stopped resolving just as described here. (I'm using ndkBuild)
I updated to version 2.3.0-beta2 and everything seemed fine, then updated NDK to 14.0.3529234rc1. then I restarted next time I opened my project JNI function stopped resolving just as described here. (I'm using ndkBuild)
[Deleted User] <[Deleted User]> #5
Sorry, I'm using ndkBuild as well (not cmake)
fr...@gmail.com <fr...@gmail.com> #6
I seem to be having same problem. After several clean installs I figured that c++ integration (navigation, code completion, structure view...) works fine even on Android Studio 2.3 Beta 3 with gradle plugin 2.3.0-beta3 as long as I do not update use NDK version 13.
After updating to NDK 14 it stops working.
After updating to NDK 14 it stops working.
ar...@google.com <ar...@google.com>
[Deleted User] <[Deleted User]> #7
Previously other contributors to this ticket had noted that staying on
NDK 13.1.3345770 solved the symbol resolution issues. Now that
NDK "14.0.3529234 rc1" replaced by NDK 14.0.3770861, probably worth
another look to see if this has been fixed
NDK 13.1.3345770 solved the symbol resolution issues. Now that
NDK "14.0.3529234 rc1" replaced by NDK 14.0.3770861, probably worth
another look to see if this has been fixed
[Deleted User] <[Deleted User]> #8
Unfortunately, appears this problem has _not_ been fixed in
NDK 14.0.3770861 -- after updating to this version, a lot of C++ symbols (which had
been correctly color-coded before, and were control-click navigable)
turned red, including basics like JNIEnv, jobject etc -- so same situation
as NDK 14.0.3529234rc1.
Will revert to NDK 13.1.3345770 and wait for next NDK update to try again...
NDK 14.0.3770861 -- after updating to this version, a lot of C++ symbols (which had
been correctly color-coded before, and were control-click navigable)
turned red, including basics like JNIEnv, jobject etc -- so same situation
as NDK 14.0.3529234rc1.
Will revert to NDK 13.1.3345770 and wait for next NDK update to try again...
[Deleted User] <[Deleted User]> #9
Config details:
Android Studio 2.3
Project A:
Gradle plugin:
* classpath 'com.android.tools.build:gradle:2.3.0'
Gradle version:
* gradle-3.3-all
Project B:
Gradle plugin:
* classpath 'com.android.tools.build:gradle:2.2.3'
Gradle version:
* gradle-2.14.1-all
For both projects, NDK 13.1.3345770 works for C++ symbols/UI navigation,
and NDK 14.0.* doesn't work for C++ symbols/UI navigation
Android Studio 2.3
Project A:
Gradle plugin:
* classpath 'com.android.tools.build:gradle:2.3.0'
Gradle version:
* gradle-3.3-all
Project B:
Gradle plugin:
* classpath 'com.android.tools.build:gradle:2.2.3'
Gradle version:
* gradle-2.14.1-all
For both projects, NDK 13.1.3345770 works for C++ symbols/UI navigation,
and NDK 14.0.* doesn't work for C++ symbols/UI navigation
tn...@google.com <tn...@google.com>
en...@google.com <en...@google.com> #10
re-reported on github: https://github.com/android-ndk/ndk/issues/309
---BEGIN QUOTE---
Android Studio "clion" feature provides syntax highlighting, typeahead prediction,
ctrl/cmd-click navigation etc. in C++ code.
If NDK 13.1.3345770 is used, everything works properly.
But if either
NDK 14.0.3529234rc1
NDK 14.0.3770861
are used, the C++ symbol resolution/navigation features break.
As explainedhttps://code.google.com/p/android/issues/detail?id=231382 this
is down solely to NDK version, not Android Studio/gradle/gradle plugin version.
---END QUOTE---
---BEGIN QUOTE---
Android Studio "clion" feature provides syntax highlighting, typeahead prediction,
ctrl/cmd-click navigation etc. in C++ code.
If NDK 13.1.3345770 is used, everything works properly.
But if either
NDK 14.0.3529234rc1
NDK 14.0.3770861
are used, the C++ symbol resolution/navigation features break.
As explained
is down solely to NDK version, not Android Studio/gradle/gradle plugin version.
---END QUOTE---
da...@google.com <da...@google.com> #11
How does CLion know where to find thngs? Any chance this is caused by the `make -n` output scanning and it was searching for only `-isystem`? r14 uses `--sysroot`.
jo...@google.com <jo...@google.com> #12
Dan's theory seems sounds. Android Studio doesn't engage unless the target is Android. If I recall correctly, Thiru implemented both isystem and sysroot checks. However, by their nature, they are apt to be fragile.
This bug should block one these:
- NDK r14
- Android Studio 2.3
This bug should block one these:
- NDK r14
- Android Studio 2.3
ks...@google.com <ks...@google.com> #13
Too late, because those both just went out!
We'll need a dot or patch release on one of them. :(
We'll need a dot or patch release on one of them. :(
xa...@google.com <xa...@google.com> #14
Hey Alex, this is candidate for 2.3.1. Can you take a look?
en...@google.com <en...@google.com> #15
(and work out what the missing QA test is. has anyone on the Studio team reproduced this yet? tnorbye said he couldn't...)
an...@google.com <an...@google.com> #16
With cmake and gradle-experimental, the combination of Android Studio 2.3 stable and NDK r14.0.3770861 is supporting navigation properly for me.
With ndkBuild (two-libs project from android-ndk github) it is not working.
With ndkBuild (two-libs project from android-ndk github) it is not working.
an...@google.com <an...@google.com> #17
I believe I have a fix on the studio side. We were only looking for sysroot flags of the form '--sysroot=<path>', not '--sysroot <path>'.
Pending at ag/1954540
Pending at ag/1954540
[Deleted User] <[Deleted User]> #18
Seems I've ran into this issue on stable Android Studio 2.3, NDK r14 and externalNativeBuild -> ndkBuild. I've downgraded NDK to r13b and all works perfect as before, so the issue is related to the changes in NDK r14.
I have complex project structure, about 10 static libraries that build into 1 shared library (include $(BUILD_SHARED_LIBRARY)) and 3 executables (include $(BUILD_EXECUTABLE)). On stable Android Studio 2.3 and NDK r14 almost all C/C++ sources begin to show "This file is not part of the project..." message. Cleaning, building, Gradle syncing doesn't help. However, it affects only syntax highlight in editor. Build and run works fine.
Also, when I was downgrading NDK to r13b, I've found that download link to NDK r13b is actually pointing to r14. So I've manually substitute version in download URL and only that way was able to download NDK r13b:https://developer.android.com/ndk/downloads/older_releases.html
I have complex project structure, about 10 static libraries that build into 1 shared library (include $(BUILD_SHARED_LIBRARY)) and 3 executables (include $(BUILD_EXECUTABLE)). On stable Android Studio 2.3 and NDK r14 almost all C/C++ sources begin to show "This file is not part of the project..." message. Cleaning, building, Gradle syncing doesn't help. However, it affects only syntax highlight in editor. Build and run works fine.
Also, when I was downgrading NDK to r13b, I've found that download link to NDK r13b is actually pointing to r14. So I've manually substitute version in download URL and only that way was able to download NDK r13b:
qu...@google.com <qu...@google.com> #19
[Deleted User] <[Deleted User]> #20
Does anyone know if this issue has been addressed in
Android Studio 2.4 Preview 1?
Android Studio 2.4 Preview 1?
fr...@gmail.com <fr...@gmail.com> #21
It is still present in Android Studio 2.4 preview 1 with gradle plugin 2.4.0-alpha1 :-(
fr...@gmail.com <fr...@gmail.com> #22
I just updated studio to 2.4 preview 3, android plugin to 2.4.0-alpha3 and NDK to r14b and C++ integration seems to be working again. :-)
Thanks
Thanks
[Deleted User] <[Deleted User]> #23
Using externalNativeBuild.ndkBuild with:
* Android Studio 2.4 Preview 3
* gradle 2.14.1
* gradle plugin 2.2.3
* NDK r14b (14.1.3816874)
CLion (C++) navigation/typeahead/cmd-click navigation etc looks OK, also C++ debug works (hit breakpoints)
* Android Studio 2.4 Preview 3
* gradle 2.14.1
* gradle plugin 2.2.3
* NDK r14b (14.1.3816874)
CLion (C++) navigation/typeahead/cmd-click navigation etc looks OK, also C++ debug works (hit breakpoints)
sa...@gmail.com <sa...@gmail.com> #24
Android Studio 2.4 Preview 3 works for me too. ctrl-click and debugging both java and cpp on emulator/device works.
[Deleted User] <[Deleted User]> #25
I guess the official release of Android Studio 2.4 is far away. Are you considering fixing this regression in Android Studio 2.3.1?
ch...@google.com <ch...@google.com> #27
We will have a fix for this in a stable version of studio shortly.
Description
JNI functions stopped resolving; prevoiusly native function names
in Java file were yellow and ctrl/cmd-clicking showed both .h
declaration and .cpp definition, so could navigate quickly from
java to C++ files.
Was hoping to isolate the specific Android Studio and plugin versions
where the JNI navigation broke but unfortunately unable to revert
plugin due to error
"Gradle sync failed: The android gradle plugin version 2.3.0-alpha2 is too old, please update to the latest version."
(Note: the project builds and runs just fine; ndkBuild creates
lib .so which works perfectly in the hybrid SDK/NDK app -- this is
just about the very convenient and useful JNI navigation feature
in the Android Studio UI breaking at some point in the last few
weeks.)