Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
214 views

Problem with NDK/SDK -> weak_ptr/buildCMakeDebug FAILED in android studio when trying to run "npx expo run:android" using expo, cannot create build

The problem is when I try to create a build the build fail. I have "expo": "~51.0.8" "react": "18.2.0", "react-native": "0.74.1" NDK used in ...
shay_solo's user avatar
0 votes
0 answers
102 views

Error when using ndk-build in android studio

I would like to build c++ code with Android Studio instead of using ndk-build script manually. I've used script from Stockfish Open Source Chess Engine and i have used Android.mk and ndk-build script ...
Dwitio Ahmad Pranoto's user avatar
0 votes
0 answers
55 views

How can I open binary file from c++ function in Android Studio?

I have a file on path app/src/main/res/networks/net.dlc which Im trying to read from c++ function which is called from Java: void someCppFunc() { static std::string dlc = "net.dlc"; ...
Il'ya Zhenin's user avatar
  • 1,292
1 vote
0 answers
86 views

Android Studio C++ missing i2c related definitions

Building a C++ module with Android Studio under Windows targetting an Orange Pi CM4 (which uses a Rockchip 3566 running Android 11 with Linux kernel 4.19.232) I'm faced with missing definitions for ...
tohox's user avatar
  • 115
1 vote
0 answers
122 views

Unable to run android app with prebuilt native library

I have a library written in c++, and it is pre built by Androi NDK clang++ with Makefile command, like this: libfoo.so: $(CXX) -c -Wall -Werror -fpic ${SRC_PATH}foo.cpp $(CXX) -shared -o ...
MinhNV's user avatar
  • 177
1 vote
0 answers
81 views

Enable obfuscation with NDK

I am trying to enable obfuscation like ollvm for android ndk but fail. Can somebody who already did it tell me how to do this easily?
theArt's user avatar
  • 41
-1 votes
1 answer
32 views

How do I keep Android Studio from Indexing my home directory?

I have a large Android Studio NDK project. A while ago, it started taking hours to open and I could not figure out why. Today I notices on the file view that the root is now for some reason considered ...
David's user avatar
  • 1,652
0 votes
1 answer
148 views

Could not get unknown property 'ANDROID_NDK' for task ':app:cargoBuildDebug' of type org.gradle.api.tasks.Exec

What went wrong: A problem occurred evaluating project ':app'. Could not create task ':app:cargoBuildDebug'. Could not get unknown property 'ANDROID_NDK' for task ':app:cargoBuildDebug' of type org....
Machindra Bade's user avatar
0 votes
0 answers
4k views

Android CMAKE linker command failed with exit code 1

My CMAKE Android NDK always failed when linking the library. In My .c code, the library always error: undefined reference to FUNCTION_NAME. This is my CMake Code: cmake_minimum_required(VERSION 3.18.1)...
Naufal Prakoso's user avatar
0 votes
1 answer
518 views

Android Studio cannot be configured correctly with a multi module project

I have cloned a project from GitHub and am trying to configure the Android component with Android Studio and the IDE does not work properly. The Gradle button does not show up, I many references are ...
goatishnewcastle49's user avatar
1 vote
1 answer
303 views

Can't open external files in Android Studio

I want to open a .npy file in C++ using the NDK in Android Studio. The external storage directory is at /storage/emulated/0/, so I used the following C++ code to open the file: #include <stdio.h>...
terdev's user avatar
  • 87
0 votes
1 answer
833 views

Android Studio Flamingo no longer creates debug symbols in App bundles

Issue description: I’m facing the issue that after some upgrades (Android Studio, Gradle plugin, etc) the creation of debug symbols in App bundles no longer happens. My current setup is: Android ...
Bash's user avatar
  • 155
0 votes
1 answer
210 views

Import .AAR containg JNI code in Android Studio Project fails

I've attempted to add a dependency to my project that uses an .AAR file, containing JNI code. I've done the following: In the build.gradle file inside the app folder I've put: implementation files('...
Simon Farre's user avatar
4 votes
1 answer
3k views

why am I getting java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found in my Android project?

Hello I got this Android app project and in this part of the code: init { try { System.loadLibrary("c++_shared") } catch (e: Exception) { Log....
linker85's user avatar
  • 1,631
2 votes
0 answers
139 views

Changing ndkVersion to latest stable version didn't fix Gradle error

I'm trying to build a Flutter project in Android Studio, but I'm encountering an error that says "Gradle task assembleDebug failed with exit code 1 - Could not get unknown property 'ndkVersion' ...
Shivansh pachauri's user avatar

15 30 50 per page
1
2 3 4 5
64