My (Kotlin) Android Studio project uses a pre-built, external library written in C++. I have the source for that library and would like to attach it so that I can navigate the source while debugging. I've looked around in both Studio and CLion documentation and have not found anything relevant.
Is it possible?
As of 10/2022, it is not possible.
Here is an abbreviation of the response to feature request:
https://issuetracker.google.com/issues/256905232
Changed status: Assigned → Infeasible
The team has considered this use case in the past, and have decided
that it is not a priority at the moment.
Related
Is it possible to use AndroidStudio (for Dart) withOUT running an emulator?
Context: I am a complete newbie and have started reading some intro books and following online tutorials. I am aiming to learn DART and FLUTTER and have successfully installed AndroidStudio and an emulator and ran some successful test projects like helloworld.
The thing is, these early example projects are VERY basic things, to teaches me about variables and syntax etc and outputs results to the console. At this point, i do not need to boot up an entire emulator (which adds a layer of clunkiness when running)... but AndroidStudio seems to insist on one being activated?
I could use "DartPad" (which i love) for simple stuff - but it's limited and i'd prefer to learn one dedicated IDE if possible.
It depends on what you are actually running. If you are using Dart alone, you should be able to run it. Personally, I do these kinds of projects within IntelliJ Idea - which Android Studio is based on anyway, but doesn't come with the Android "overhead". Microsoft Visual Studio Code is another valid option that many people use.
If your project is based on Flutter (i.e. it contains UI), you need a "device" to run on - it might be the Android emulator, iOS simulator, Chrome or native (experimental).
The code completion is fine on Android Studio java project. But I want to use Android Studio to edit some existing C file(.cpp).
for example, if i have declared some function, then i type the function in other section. But the android studio doesn't show up the code suggestion or some debugging.
Can Android Studio support Code completion for C/C++ like this:?
Yes it does, as long as the project is setup to use the NDK and the C/CPP sources are included in the project.
Try pulling the ndk sample repo and try opening one of the projects.
If you have a java project and want to edit some arbitrary C or C++ source, then no. It does not have enough information about the source file, include paths, compiler etc...
If your project uses Android.mk to build, it will be a bug of Android Studio. I have been reported.
Android.mk project cannot show code completion for cpp.
It seems that old version of Android Studio does not support code completion of jni native build (with Android.mk as configuration file), and that should already be fixed now.
But if you are using CMake in your project as external building tool and code completion still does not work, It's probably because you have more than one version of cmake installed. You can try to remove extra ones from SDK manager and restart Android Studio, it should work.
To see installed CMake version, you can open the SDK manager and check the 'show package details' on the right bottom. You can view cmake tools installed with different versions.
I have got some open source projects which I want to have a try. But I want to use Eclipse if the project was made using eclipse; otherwise I would like to use Android Studio.
So how can I know by viewing the source code about the IDE used for the development of a particular project? Is there any metadata in any file which stores the IDE information?
I believe that Android Studio sometimes includes gradle related files. That's how I would check.
I'm looking for a quick overview on how to create a resource-only DLL in Visual Studio 2012. I found this old article for Visual Studio 2005, but that doesn't exactly appear to be relevant anymore:
http://msdn.microsoft.com/en-US/library/24b2tcy0(v=VS.80).aspx
The goal is that I (the graphics guy, not the programmer) can make the resources DLL for the programmer to pull bitmaps and icons from. I can follow instructions, and have enough Visual Studio experience to figure out at least cursory instructions - I'm just looking for a starting point if nothing else.
Thanks in advance,
Beems
Start a new project of "class library" type.
There will be a single class, depending on the language you chose it
will be named differently. Delete it.
Add your resources to the project, change their properties to
"Embedded Resource"
Compile
Recently I came across a recommendation for a Visual Studio plugin called Refactor! For Visual C++ that looks like it would be very useful in helping me tame a particularly pastalike legacy application that I've inherited. Unfortunately, the download links appear to be broken and I can't find a mirror anywhere online.
I've also tried to contact DevExpress, but they suggested that Refactor has been effectively discontinued by being rolled into CodeRush Express and that I use that. Since CodeRush does not support C++, and even further doesn't work with Visual Studio 2005, I am unable to use it.
Does anyone know of (or can provide) a mirror for the Refactor! for VC++ installer? I'm sure I'm not the only one who's stuck in VS2005 that would benefit from this tool.
DevExpress responded to an issue in their tracker with a link to just the Refactor component. Unfortunately, I couldn't get it to work for me.
For posterity, here's the link they sent, and the issue ticket:
http://downloads.devexpress.com/DXperience/2011.2/7/RefactorCPP-11.2.7.exe
http://www.devexpress.com/issue=B208783
Edit: Before someone else says it, Visual Assist X does support Visual Studio 2005. I was interested in Refactor mostly for the fact that it is was a free product that I could use at work without having to go through purchasing and licensing issues.
Have you tried this plugin, which claims to support VS2005 and C++:
DevExpress Refactor! Pro for Visual Studio (Trial)