Issue So anybody worth their salt in the android development community knows about issue 3434 relating to low latency audio in Android. For those who don’t, you can educate yourself here. http://code.google.com/p/android/issues/detail?id=3434 I’m looking for any sort of temporary workaround
Continue readingTag: android-ndk
How to disable split APKs in order to test arm only app on x86_64 AVD on Android Studio 2023
Issue I’m trying to build an arm-only app (https://github.com/Mearitek/MeariSdk/tree/MeariSdk-5.0.0) with a fresh Android Studio 2023 install and that does not seem to work because Android Studio seems to insist to create split build APKs and does not find any NDK
Continue readingSet doNotStrip packagingOptions to a specific buildType
Issue My project has 3 different buildTypes and I need only one of them to keep the debug info of its native libraries. I’m using com.android.tools.build:gradle:3.1.4. I tried the following buildTypes { debug { … } release { … }
Continue readingHow to get my process' id (PID) in Android NDK?
Issue How to get my process’ id (PID) in Android NDK? jclass proc_Cls = env->FindClass(“android/os/Process”); jmethodID proc_id = env->GetMethodID(proc_Cls, “myPid”, “()I”); jint prcId = env->CallIntMethod(proc_Cls, proc_id); This code does not work. Solution Since a process ID is an operating system
Continue readingAndroid NDK: specify different cmake arguments for each target
Issue There are several native libs in this Android app. One of them ("vulkan_info") will only build with the argument "-DANDROID_PLATFORM=android-24." However, the other libs need to support minSdkVersion 16. Using the build.gradle section posted below, the arguments "-DANDROID_ARM_NEON=TRUE" "-DANDROID_PLATFORM=android-24"
Continue readingCMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
Issue When I build an android project which includes ndk code. I got the following error: Build command failed. Error while executing process /home/gongzelong/Android/Sdk/cmake/3.6.4111459/bin/cmake with arguments {-H/media/gongzelong/TOSHIBA/Code/Code/ImageLoaderEncapsulation/ImageLoader/ImageLoaderDemo/app -B/media/gongzelong/TOSHIBA/Code/Code/ImageLoaderEncapsulation/ImageLoader/ImageLoaderDemo/app/.externalNativeBuild/cmake/debug/armeabi -GAndroid Gradle – Ninja -DANDROID_ABI=armeabi -DANDROID_NDK=/home/gongzelong/Android/Sdk/ndk-bundle -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/media/gongzelong/TOSHIBA/Code/Code/ImageLoaderEncapsulation/ImageLoader/ImageLoaderDemo/app/build/intermediates/cmake/debug/obj/armeabi -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/home/gongzelong/Android/Sdk/cmake/3.6.4111459/bin/ninja -DCMAKE_TOOLCHAIN_FILE=/home/gongzelong/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_PLATFORM=android-14 -DCMAKE_CXX_FLAGS=}
Continue readingAndroid c++ AAsset_read reads wrong data
Issue I read content of text files from assets. However, if I read second file then I get wrong result. It is mixed with previous file. Here is first file, this is correctly written to buffer by AAsset_read: uniform mat4
Continue readingAndroid NDK: Failed to call C++ constructor
Issue I’m trying to port a C++ desktop program to Android using NDK. When Debugging I found that the constructor of class Constants is not called when initializing class Windows, leaving width_ and height_ to 0, and the call trace
Continue readingBuild rust_binary for android using bazel
Issue I can easily build cc_binary and execute it on android device. I want to do the same using rust_rules. But not able to build it. I’m confused with flags that must be used. I didn’t try on linux, but
Continue readingUnity fails to build game for android
Issue Recently I have build a new PC for my home. I setup my PC just as like my PC at my office. But when I try to build a game that I’m working on currently. I can build for
Continue reading