Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to autocomplete code with C/C++ in Android Studio with Android NDK

I'm a newbie in Android development and I have to work with Android NDK in Android Studio. When I write code in Android Studio, code can't be suggested, so quite difficult to work better. Does Anyone have solution for that? Thank you

like image 463
Vinh Le Avatar asked Mar 16 '16 10:03

Vinh Le


2 Answers

I had the same issue for an Eclipse project that I imported in Android Studio. It turns out that the NDK path in the file local.properties was pointing to a previously installed version of the NDK, and not to the NDK downloaded by the SDK manager in Android Studio as it should now be the case. Updating the path in that file allowed me to recover autocomplete.

like image 115
Jean-Baptiste Boin Avatar answered Sep 18 '22 20:09

Jean-Baptiste Boin


This previous post seems linked to your issue: Android Studio - Auto complete and other features not working

Regards.

like image 31
Mikitori Avatar answered Sep 19 '22 20:09

Mikitori