Android - Key Dispatching Timed Out

In my Android application I am getting a very strange crash, when I press a button (Image) on my UI the entire application freezes and after a couple of seconds I getthe dreaded force close dialog...

setprop doesn't set the property on rooted Android phone

I'm developing an application (using Eclipse + Android SDk/NDK) which uses the micro-usb port on an android phone to connect to peripherals. I am trying to connect to the ADB daemon on the phone...

Reduce the background noise when recording in android

I have developed a app which record the sound & play at same time approximate 100ms delay by using audio track & audio record class in android. But the played audio have lot of background noise....

android ndk error "no such file or directory"?

I have some header files in include folder. Here is the Android.mk file contents. include $(call all-subdir-makefiles) LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE :=...

java.lang.ClassNotFoundException: Didn't find class on path: dexpathlist

I'm currently working on a project in which I have to use purely native ndk. It worked when I try running an helloworld example from Irrlicht engine source. Then I try using it in my project...

How do you get ANativeWindow from a SurfaceTexture in the NDK

I've got some OpenGL ES code that has been rendering to a GLSurfaceView, and I'm currently modifying it to work with either SurfaceView and TextureView. The common element I need from both inside...

How to resolve "ERROR: libx264 not found"?

I needed to install ffmpeg with libx264 support for enabling H.264 encoding . I installed libx264 successfully using the below script with toolchains available in android-ndk-r9d . #!/bin/bash ...

Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm

I want to compile an open source android project (Netguard) using gradel (gradlew clean build) But I encountered this Error: A problem occurred configuring project ':app'. > Exception thrown while...

Import existing c++ library (.a or .so file) ndk android

I just gone through native development in android. I am successful in getting my AndroidStudio 2.2.2 ready for native debelopment I also build sample hello-jni project What I am trying to...

NDK is missing a "platforms" directory. while trying to build

Executing tasks: [clean] Configuration on demand is an incubating feature. NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is...

React Native installRelease Task 'installRelease' not found in root project 'timeReportTool'. Some candidates are: 'uninstallRelease'

Okay so I am trying to get my react-native into an apk file and install it on a device the assembleRelease works fine but it seems like it doesn't get the signing since I can only install the...

cannot locate symbol "ANativeWindow_fromSurfaceTexture" referenced by

Execute the application exception occurs cannot locate symbol "ANativeWindow_fromSurfaceTexture" referenced by System.loadLibrary("aaa"); In the aaa.so file used ANativeWindow_fromSurfaceTexture...

Multidex issue with Flutter

I'm getting the following error compiling with gradle using Flutter in Android Studio: Dex: Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define...

Flutter: "Lost connection to device" error after Hot Reload

Here's the full error from the debug console: Launching lib\main.dart on Android SDK built for x86 in debug mode... Built build\app\outputs\apk\debug\app-debug.apk. I/FlutterActivityDelegate(...

How to stop gradle from looking for the Android NDK?

I have a Android project which doesn't use the NDK jet Gradle is looking for the NDK. Either I get this Error: No toolchains found in the NDK toolchains folder for ABI with prefix:...

Why CustomClipper is not working suddenly?

I'm studying clipping image as curve, but CustomClipper is not working suddenly. Only clipper property of IreneClipper not works. How can I fix it? import 'package:flutter/material.dart'; void...

Gradle sync failed: A problem occurred configuring project ':lib'

I am trying to build one project in android studio but its always fails with error called org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':app'. at...

Support to 64-bit gives error on adding ndk.abiFilters in build.gradle

Most of the android developers must have got the message from Google to update the apps to support 64-bit architecture by Aug 2019. The detailed instructions are given here: Ensure that your app...

How to fix "Could not find toolchain file" "CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage" cmake libjpeg-turbo.so?

I am working on generating libjpeg-turbo.so files for different CPU architectures. If I execute the below cmake in my build folder I am getting this error even though the toolchain file is present...

I am unable to build my flutter web project

When trying to run flutter build web i get "build web" is not currently supported. I had previous errors where i was stuck with Dart 2.5.0-dev.4.0.flutter-be66176534 and required 2.5.0 or higher,...

No version of NDK matched the requested version

After updating to Android Gradle plugin 3.6.0 (released Feb 24, 2020), several project independently started failing with: No version of NDK matched the requested version 20.0.5594570. Versions...

Execution failed for task ':app:minifyReleaseWithR8'.java.lang.NullPointerException (no error message)

when id update android studio to 3.6 android gradle tools to 3.6.0 ,there is a problem.when I generate sign apk,I got an exception,it is like this Execution failed for task...

Android SDK Tools: OpenCV requires Android SDK Tools revision 14 or newer

I'm trying to create a simple photo capture app using kivy, opencv. When I tried to create an .apk file using buildozer, and put opencv in requirements at .spec file then I faced this error --...

Visual Studio 2019 not recognizing Jdk and Android SDK

Visual Studio is showing in the Error List two Errors recently: Xamarin.Android for Visual Studio requires Android SDK. Please click here to configure. Xamarin.Android for Visual Studio requires...

when I compile the Android.mk, it comes error couldn't find .so.toc

I want to use libcdrmclient_sw.so to make SHARED_LIBRARIES, and i'll use one func defined in libcdrmclient_sw.so like this int CDRMC_CheckPolicy(void* sessionHandle, char *destData, unsigned int...

w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions

Performing ./gradlew assembleRelease and hit the issue of this. Below shows the entire error log... > Task :app:mergeDexRelease FAILED java.nio.file.NoSuchFileException:...

Android Gradle plugin 7.0.0 and NDK: UnsatisfiedLinkError

I recently updated Android Gradle Plugin to version 7.0.0 (Gradle version 7.0.2). Since I did this update, my native library continues to be compiled regularly, but no .so files are generated in...

org.gradle.api.UnknownDomainObjectException: KotlinJvmAndroidCompilation with name 'debug' not found

I have a java Android project and I am trying to include Kotlin/Convert some of the java classes to Kotlin. Project's build.gradle: Here I have introduced a variable for otlin version 1.6.10 and...

React native: Error "Unexpected identifier '_classCallCheck'.import call expects exactly one argument"

I'm using React-Native on my android program, after open my porject with react-native run-android ,the error occurred.The same error message occurred twice. Unexpected identifier...