About Monkey 2 › Forums › Monkey 2 Programming Help › Errors with Android target
This topic contains 3 replies, has 2 voices, and was last updated by abakobo
8 months, 1 week ago.
-
AuthorPosts
-
June 11, 2018 at 9:41 am #14806
Hello,
I have Monkey2-v2018.04 installed with pre-built binaries.Compiling to desktop (Windows) works, but when compiling to Android the simple Mojo example template, I get the following errors:
Android NDK: ERROR:jni/Android.mk:mx2_mojo: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that C:/Monkey2-v2018.04/modules/mojo/mojo.buildv1.1.12/android_release/obj/local/armeabi-v7a/libmx2_mojo.a exists or that its path is correct
Build error: System command failed:ndk-build
C:/Users/PC-123/AppData/Local/Android/Sdk/ndk-bundle/build//../build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop.
***** Fatal mx2cc error *****
Internal mx2cc build error
I have the following installed related to Android target:
Android Studio 3.1.3
* Android API 28
* Android 7.0, API level 24SDK Tools
* Android SDK Build-Tools 28
* GPU Debugging tools
* CMake
* LLDB
* Android SDK Platform-Tools
* Android SDK Tools
* Instant Apps Development SDK
* NDK
+ All the stuff in the Support RepositoryWhat should I do…? My App is ready, just need to compile it to Android.
June 11, 2018 at 11:34 am #14808you have to build the modules to android target before compiling your app itself to android target.
got to Build->Update/rebuild modules Then check all modules, uncheck “desktop” and check “android” (and “ios” if you are on osx) then click “update” and wait…
June 11, 2018 at 5:13 pm #14814When compiling the modules to Android, I got following:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang.exe: note: diagnostic msg: C:\Users\PC-123\AppData\Local\Temp\sqlite3-42a748.c
clang.exe: note: diagnostic msg: C:\Users\PC-123\AppData\Local\Temp\sqlite3-42a748.sh********************
make: *** [obj/local/armeabi-v7a/objs/mx2_sqlite/__/__/__/sqlite-amalgamation/sqlite3.o] Error 1Though my app doesn’t need “sqlite”, so compiling it to Android went through without errors.
If needed, I can upload files mentioned above.
Edited: I managed to create my first Monkey2 made Android apk. Question removed.
June 12, 2018 at 3:48 am #14815There was a problem with sqlite/android but it’s now ok with the latest develop branch (at least the lastest one I’ve been building).
You can just not select sqlite while building modules for android if you don’t need it. The following release should have solved the problem. -
AuthorPosts
You must be logged in to reply to this topic.