I'm having trouble using the Android NDK and the error is as follows

WBOY
Release: 2024-02-09 12:42:08
forward
635 people have browsed it

我在使用 Android NDK 时遇到问题,错误如下

php Editor Xiaoxin encountered a problem when using Android NDK. The error is as follows. This problem may be often encountered during the development process, but it is not that easy to solve. When developing using Android NDK, we often need to call C or C code. Various errors may occur during the compilation and linking process, which need to be carefully checked and resolved. When we encounter problems, we can solve them by viewing error messages, checking code logic, comparing documents, etc. Hopefully, by reviewing the error message and analyzing the root cause of the problem, you can find a solution to the problem and make the development process smoother.

Question content

I'm using Fyne for packaging, but I'm having trouble packaging to Android. I tried two methods and the error is as follows:

Found no ARM compiler in NDK (tried). Make sure your NDK version is >= r19c. Use sdkmanager --update to update

and

no Android NDK found in $ANDROID_HOME/ndk-bundle or $ANDROID_NDK_HOME

I have tried before:

fyne package -os android -appID com.example.myapp -> Android NDK not found in $ANDROID_HOME/ndk-bundle nor $ANDROID_NDK_HOME

ANDROID_NDK_HOME=/Users/ahmetaffanebcioglu/Library/Android/sdk/ndk fyne package -os android -appID com.example.myapp -> arm compiler not found in NDK (tried ). Make sure your NDK version is >= r19c. Update using sdkmanager --update

Workaround

For those who are looking for an answer to this problem, a solution has been found.

ANDROID_NDK_HOME=/Users/username/Library/Android/sdk/ndk/Contents/NDK fyne package -os android -appID com.example.myapp
Copy after login

But if the NDK is in a different place, I don't know.

The above is the detailed content of I'm having trouble using the Android NDK and the error is as follows. For more information, please follow other related articles on the PHP Chinese website!

source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!