android-ndk

How to create HashMap<String, String> through JNI then parse to java

佐手、 提交于 2020-08-27 21:57:31
问题 Hi I want to secure my web url and app secret keys through Ndk, I want to create hashmap in app and also store key values statically then parse to java, I follow Stackoverflow answer like Create HashMap also JNI passing objects from C++ to Java some method deprecated from above link and didn't find any way to do this, I created HashMap but it giving me error #include <jni.h> extern "C" JNIEXPORT jobject Java_com_company_project_home_ui_MainActivity_getUrlMap( JNIEnv *env, jobject /* this */)

Cannot debug app when using wrapper script

混江龙づ霸主 提交于 2020-07-22 09:27:33
问题 I have activated address sanitizer for my app's native codes in order to detect some memory leak. But I have a strange problem. Before activating address sanitizer, app just runs normally and I can debug it without any problems. But after activating address sanitizer, I cannot debug app anymore, even though it runs just fine. It is a really strange behavior because after activating address sanitizer, "Waiting for Debugger..." message does not show anymore and I get following error in debug

Cannot debug app when using wrapper script

允我心安 提交于 2020-07-22 09:26:47
问题 I have activated address sanitizer for my app's native codes in order to detect some memory leak. But I have a strange problem. Before activating address sanitizer, app just runs normally and I can debug it without any problems. But after activating address sanitizer, I cannot debug app anymore, even though it runs just fine. It is a really strange behavior because after activating address sanitizer, "Waiting for Debugger..." message does not show anymore and I get following error in debug

Cannot debug app when using wrapper script

让人想犯罪 __ 提交于 2020-07-22 09:26:26
问题 I have activated address sanitizer for my app's native codes in order to detect some memory leak. But I have a strange problem. Before activating address sanitizer, app just runs normally and I can debug it without any problems. But after activating address sanitizer, I cannot debug app anymore, even though it runs just fine. It is a really strange behavior because after activating address sanitizer, "Waiting for Debugger..." message does not show anymore and I get following error in debug

Android, CMake and Static Linking

◇◆丶佛笑我妖孽 提交于 2020-07-18 05:22:06
问题 In converting a library project build from Android.mk to CMakeLists.txt following the Google hello-libs example and I have encountered problems avoiding undefined references. I'm using an open source project called DCMTK and compiling DCMTK and ICONV to static libraries that I then link in. Building using the Android.mk works via ndk-build and building them with gradle and the following CMakeLists.txt works when I add each static library to the target_link_libraries . However, I wanted to use

Verbose build logs from Android Studio

风流意气都作罢 提交于 2020-07-08 12:58:08
问题 How do I get a verbose log (including the command-line arguments to compiler and linker) when building with Android Studio? I have just transitioned from Ant / Android.mk builds to Android-Studio builds. With the old system, I was able to see how the compiler was evoked by doing: $ ndk-build V=1 What would be the equivalent setting in Android Studio to accomplish this? I have a suspicion that my project is building against the wrong GLES version (gles2 instead of gles3) and want to make sure

Verbose build logs from Android Studio

限于喜欢 提交于 2020-07-08 12:57:50
问题 How do I get a verbose log (including the command-line arguments to compiler and linker) when building with Android Studio? I have just transitioned from Ant / Android.mk builds to Android-Studio builds. With the old system, I was able to see how the compiler was evoked by doing: $ ndk-build V=1 What would be the equivalent setting in Android Studio to accomplish this? I have a suspicion that my project is building against the wrong GLES version (gles2 instead of gles3) and want to make sure