ASK Map Fuse

Hi, currently i’m developing an app which require mapview, but when i try to build, i got this error

file

This is my unoproj file

file

it said ERROR: Process com.mapFuse was not found

Can you guys fix this error?

Thank You

btw this is my code

Hi indra,

Could you try browsing to <your-project-directory>/build/Android/Debug and running the run.sh or run.bat file you find there? Please copy-paste the result in this thread.

Am I correct in saying your project is called mapFuse?

Sorry you are having this issue but thanks for posting about it.

this is what I get sir

ERROR: An APK was not found at ‘D:\Documents\Fuse\mapFuse\build\Android\Debug\mapFuse.apk’

Nevermind about my first question sir. For some reason it can preview in android now but when it’s run it will force close automatically.If I run preview in local mode, the emulator will come out, but nothing inside since the mapview only support native view isn’t it? but when i try to preview in android, it will error. this is the log

Installing APK on 1 device(s) Launching actitity ‘mapFuse’ E/Zygote (14544): MountEmulatedStorage() E/Zygote (14544): v2 I/libpersona(14544): KNOX_SDCARD checking this for 10288 I/libpersona(14544): KNOX_SDCARD not a persona I/ActivityManager( 3265): Start proc com.mapFuse for activity com.mapFuse/.mapFuse: pid=14544 uid=10288 gids={50288, 9997, 3003, 1028, 1015} abi=armeabi-v7a I/SELinux (14544): Function: selinux_compare_spd_ram, SPD-policy is existed. and_ver=SEPF_GT-I9500_5.0.1 ver=38 I/SELinux (14544): Function: selinux_compare_spd_ram , priority [1] , priority version is VE=SEPF_GT-I9500_5.0.1_0038 E/SELinux (14544): [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL I/art (14544): Late-enabling -Xcheck:jni D/ResourcesManager(14544): creating new AssetManager and set to /data/app/com.mapFuse-1/base.apk D/mapFuse (14544): SUT: false CML: false SDK: 21 V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/ic_ab_back_holo_dark_am.png V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/sym_def_app_icon.png V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/mipmap-xxhdpi-v4/icon.png E/ (14544): [android_ws] Format: 511, Width: 1, Height: 1 E/ (14544): [android_ws] Format: 511, Width: 1, Height: 1 E/ (14544): [android_ws] Format: 511, Width: 1, Height: 1 D/Activity(14544): performCreate Call secproduct feature valuefalse D/Activity(14544): performCreate Call debug elastic valuetrue D/OpenGLRenderer(14544): Render dirty regions requested: true D/Atlas (14544): Validating map… I/OpenGLRenderer(14544): Initialized EGL, version 1.4 W/OpenGLRenderer(14544): Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without… D/OpenGLRenderer(14544): Get maximum texture size. GL_MAX_TEXTURE_SIZE is 4096 D/OpenGLRenderer(14544): Enabling debug mode 0 E/ (14544): [android_ws] Format: 5, Width: 1080, Height: 1920 E/ (14544): [android_ws] Format: 5, Width: 1080, Height: 1920 E/ (14544): [android_ws] Format: 5, Width: 1080, Height: 1920 E/ (14544): [android_ws] Format: 5, Width: 1080, Height: 1920 E/ (14544): [android_ws] Format: 511, Width: 1080, Height: 1920 E/ (14544): [android_ws] Format: 511, Width: 1080, Height: 1920 E/ (14544): [android_ws] Format: 511, Width: 1080, Height: 1920 E/ (14544): [android_ws] Format: 511, Width: 1, Height: 1 E/ (14544): [android_ws] Format: 511, Width: 1, Height: 1 E/ (14544): [android_ws] Format: 511, Width: 1080, Height: 1920 E/ (14544): [android_ws] Format: 511, Width: 1080, Height: 1920 I/Timeline(14544): Timeline: Activity_idle id: android.os.BinderProxy@36e5d76c time:98313329 E/ (14544): [android_ws] Format: 511, Width: 1, Height: 1 E/ (14544): [android_ws] Format: 511, Width: 1, Height: 1 E/ (14544): [android_ws] Format: 511, Width: 1080, Height: 1920 E/ (14544): [android_ws] Format: 511, Width: 1080, Height: 1920 E/ (14544): [android_ws] Format: 511, Width: 1080, Height: 1920 E/ (14544): [android_ws] Format: 511, Width: 1, Height: 1 E/ (14544): [android_ws] Format: 511, Width: 1, Height: 1 E/ (14544): [android_ws] Format: 511, Width: 1080, Height: 1920 E/ (14544): [android_ws] Format: 511, Width: 1080, Height: 1920 E/ (14544): [android_ws] Format: 511, Width: 1080, Height: 1920 I/zzad (14544): Making Creator dynamically D/ResourcesManager(14544): creating new AssetManager and set to /data/app/com.google.android.gms-2/base.apk W/ResourcesManager(14544): Asset path ‘/system/framework/com.android.media.remotedisplay.jar’ does not exist or contains no resources. W/ResourcesManager(14544): Asset path ‘/system/framework/com.android.location.provider.jar’ does not exist or contains no resources. D/ChimeraCfgMgr(14544): Reading stored module config D/ChimeraFileApk(14544): Primary ABI of requesting process is armeabi-v7a I/art (14544): DexFile_isDexOptNeeded failed to open oat file ‘/data/dalvik-cache/arm/data@data@com.google.android.gms@app_chimera@m@00000000@DynamiteModules-prod.apk@classes.dex’ for file location ‘/data/data/com.google.android.gms/app_chimera/m/00000000/DynamiteModules-prod.apk’: Failed to open oat filename for reading: No such file or directory D/ChimeraFileApk(14544): Classloading successful. Optimized code found. I/Google Maps Android API(14544): Google Play services client version: 8487000 I/Google Maps Android API(14544): Google Play services package version: 8703238 V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/maps_icon_gmm.png V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/maps_icon_direction.png V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/maps_btn_myl_pressed.png V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/maps_btn_myl_normal.png D/AbsListView(14544): Get MotionRecognitionManager V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/maps_btn_zoom_up_disabled.png V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/maps_btn_zoom_up_pressed.png V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/maps_btn_zoom_up_normal.png V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/maps_btn_zoom_down_disabled.png V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/maps_btn_zoom_down_pressed.png V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/maps_btn_zoom_down_normal.png V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/maps_ic_compass_needle.png V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/maps_button_compass_highlighted.png V/BitmapFactory(14544): DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/maps_button_compass.png W/ContextImpl(14544): Failed to ensure directory: /storage/extSdCard/Android/data/com.mapFuse/cache E/ (14544): [android_ws] Format: 511, Width: 1, Height: 1 E/ (14544): [android_ws] Format: 511, Width: 1, Height: 1 I/mapFuse (14544): Preview detected an unhandled exception: Uno.Exception: Fuse.Controls.NativeViewHost must have a native parent view. Theme provides no native view for parent type Fuse.Controls.Panel I/mapFuse (14544): at Fuse.Android.NativeViews.NativeView.RootNativeView() I/mapFuse (14544): at Fuse.Android.NativeViews.NativeView.OnRooted(Fuse.Node) I/mapFuse (14544): at Fuse.Android.NativeViews.ParentNativeView`1.OnRooted(Fuse.Node) I/mapFuse (14544): at Fuse.Android.NativeViews.NativeViewHost.OnRooted(Fuse.Node) I/mapFuse (14544): at Fuse.Behavior.Rooted(Fuse.Node) I/mapFuse (14544): at Fuse.Node.RootBehaviors() I/mapFuse (14544): at Fuse.Node.MarkRooted() I/mapFuse (14544): at Fuse.Node.MarkRooted() I/mapFuse (14544): at Fuse.Node.MarkRooted() I/mapFuse (14544): at Fuse.Node.MarkRooted() I/mapFuse (14544): at Fuse.Node.OnAdded(Fuse.Node) I/mapFuse (14544): at Fuse.RootViewport.set_Content(Fuse.Node) I/mapFuse (14544): at Fuse.App.OnSetRootNode(Fuse.Node) I/mapFuse (14544): at Fuse.AppBase.CheckPendingReify() I/mapFuse (14544): at Fuse.AppBase.OnUpdate() I/mapFuse (14544): at Outracks.Simulator.Application.OnUpdate() I/mapFuse (14544): at Fuse.App.FrameCallback.doFrame(long) I/Choreographer(14544): Skipped 89 frames! The application may be doing too much work on its main thread. D/AndroidRuntime(14544): Shutting down VM E/AndroidRuntime(14544): FATAL EXCEPTION: main E/AndroidRuntime(14544): Process: com.mapFuse, PID: 14544 E/AndroidRuntime(14544): java.lang.NullPointerException: Attempt to invoke interface method ‘void com.fusetools.androidmapsapi.FuseMap$FuseMapCallback.onReady()’ on a null object reference E/AndroidRuntime(14544): at com.fusetools.androidmapsapi.FuseMap.configure(FuseMap.java:134) E/AndroidRuntime(14544): at com.fusetools.androidmapsapi.FuseMap.access$100(FuseMap.java:20) E/AndroidRuntime(14544): at com.fusetools.androidmapsapi.FuseMap$1.onMapReady(FuseMap.java:67) E/AndroidRuntime(14544): at com.google.android.gms.maps.MapView$zza$1.zza(Unknown Source) E/AndroidRuntime(14544): at com.google.android.gms.maps.internal.zzo$zza.onTransact(Unknown Source) E/AndroidRuntime(14544): at android.os.Binder.transact(Binder.java:380) E/AndroidRuntime(14544): at com.google.android.gms.maps.internal.v$a$a.a(:com.google.android.gms.alldynamite:82) E/AndroidRuntime(14544): at maps.ei.bu$6.run(Unknown Source) E/AndroidRuntime(14544): at android.os.Handler.handleCallback(Handler.java:739) E/AndroidRuntime(14544): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime(14544): at android.os.Looper.loop(Looper.java:145) E/AndroidRuntime(14544): at android.app.ActivityThread.main(ActivityThread.java:5942) E/AndroidRuntime(14544): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(14544): at java.lang.reflect.Method.invoke(Method.java:372) E/AndroidRuntime(14544): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1389) E/AndroidRuntime(14544): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1184) I/b (14544): Sending API token request. I/b (14544): Received API Token: AH0uPGHVHEVFRATCpJQSU1IezQA5-rIe3NS5IDeb8yVl1RGV6d_p_Wfm1F8gZE65i0uLFP5HGy786YGPFEpXusTJxEaYPG

Hey again indra,

Seems there is a problem with using a NativeViewHost inside an app with the NativeWithFallback Theme.

If you use NativeWithFallback just remove the NativeViewHost, your code works on android. If you use the Basic theme NativeViewHost works.

I have filed a bugreport for this.

Thanks for the help

Oh I see. okay. Thank You Sir. i try it and it works now. :smiley:

But, just now i try to point to another place beside fuseHQ, but when I do that my screen will not directly showing the marker. i need to drag the map then only i can see. Is there any way to show the marker ? i try to use zoom attribute, but it does not effect the map. Thank You