I am trying to debug native code (using breakpoints) on Android Studio. As far as I know should be possible on 1.5.
The key point is that the app has been compiled using ndk build standard way, and it would be a huge task to create an Android Studio Project.
SO is there any way to attach our app to the debugger, import the symbols (so libs) and debug property.
If not what would be the minimal setup for the project, to recognize it as native and load the symbols?
Thanks so much!
Related
So , I created an Empty c++ Project In Visual Studio 2019 And Linked The Libraries Non-Staticly
(That Means I Just The Placed The dll's in The Qutput Directory) And Then Closed VIsual Studio And Switched To VSCode And Now I Build The Project Using Devloper Cmd(Of Visual Studio Of Course) and MSBuild I Use SFML To Make The Project And Now Want To Port It Over To Android (Or IOS Or Both Anything Will Work)
Is There Any Way That This Can Happen ? Please Ask Me If You Want Any Other Information
You should install the Mobile Development with C++ package in the Visual Studio Installer. Create a new C++ project using the template Native-Activity Application (Android).
Trying to convert one project type to another is pointless and a waste of your time. However, your old source code can be included in the new project using the various right click actions.
I've been building some apps in react native using expo and wanted to see how the code looks in java in Android studio. I'm having trouble using decompiler(I've tried jadx, decompileandroid.com, and CFR). When I open the folder in android studio I can't find any source files other than classes named a,b,c,etc that have maybe 10 lines of code. I can't even find the strings that were in my app.
Does expo build the apk with proguard enabled? If so, is there a way to disable it? I have the react native source, I just want to see the java analogue. Is this a problem solely from using expo?
If you want to use a project you created using "expo" in your Android studio, you need to separate expo.
To separate, run 'expo eject'. This will result in an android file and an iOS file.
this is link about expo eject
ExpoKit is an Objective-C and Java library that allows you to use the Expo platform and your existing Expo project as part of a larger standard native project -- one that you would normally create using Xcode, Android Studio, or react-native init.
You can use the new Android file to run the Android studio.
I'm building a cross-platform Xamarin app and it has been working fine. However, I need to implement some logic in C++ and therefore created a shared Android/iOS project.
The C++ Android project targets the same Android API version as the app project.
If I reference the C++ project (to get the .so file in my Android app project) the app fails to start.
It seems to build fine, and I see Starting Android application ... in the Visual Studio output, but then it just seems to exit without any additional info. In other words, the app is deployed, but it isn't started and the debugger isn't attached.
If I remove the reference again, the app starts normally.
I'm targeting x86 with the C++ library, same architecture as the emulator.
I want to use OpenCV library in both my Java codes and JNI C++ codes in Android Studio.
How can I import OpenCV library and set up the NDK environment (JNI) in the same android project in Android Studio?
I could successfully do either one, but could not do both in a project even though I have tried many times.
I followed these two tutorials to set up the environment.
1. OpenCV for android
2.JNI/NDK
Does anyone have any idea why my setup was failed?
Or can anyone provide me a guide to set up the environment?
I saw that VS 2015 supports native Android development.
What I was able to read on the matter suggested that they support apps that are completely natively built.
My team's app consists of a Java part and a native part, will VS be able to debug the c++ part when it is launched from Android studio/Eclipse with ADT? Or can VS run the whole thing?
Visual Studio can build and debug complete Android applications leveraging C++ and Java. Visual Studio Android development story also allows to debug already built applications (.apk's) in VS easily.
http://blogs.msdn.com/b/vcblog/archive/2015/07/20/what-s-new-with-visual-c-cross-platform-mobile-development.aspx
"•You can now debug an existing Android APK without the need to build from Visual Studio. This means you can use the powerful C++ debugging experience in Visual Studio without the need to migrate any source or build settings. To use this capability follow the steps below" section.
I think that you can only debug C++ using VS, also you have to build and start the app from VS because it adds some libs to the apk to debug it.
You are correct with VS2015 RTM android developers can only debug C++ code. With Visual Studio 2015 Update 1 RC Visual Studio will allow Android developers to debug both C++ and Java code. In addition to this we will also be launching a preview version of Java code-editing features (navigation, intellisense) We would love to hear your feedback, once you try out our Java debugging and language service experience.
You can reach us at vcmdd-admin#microsoft.com or follow us at
http://blogs.msdn.com/b/vcblog/ if you have more questions.