Hello!
My app works fine in Unity Editor, but shows black screen, when it is built for android. In android monitor I can see following errors:
09-20 09:51:24.396: W/Unity(25830): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
09-20 09:51:25.071: W/Unity(25830): FOUND TARGET PATH: jar:file:///data/app/com.sophour.xrnotes-1/base.apk!/assets/testArMarkers/flowers.JPG
09-20 09:51:25.071: W/Unity(25830):
09-20 09:51:25.071: W/Unity(25830): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
09-20 09:51:25.083: E/Unity(25830): Require Initialize!
09-20 09:51:25.083: E/Unity(25830):
09-20 09:51:25.083: E/Unity(25830): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
09-20 09:51:25.153: W/Unity(25830): FOUND TARGET PATH: jar:file:///data/app/com.sophour.xrnotes-1/base.apk!/assets/testArMarkers/circles.JPG
09-20 09:51:25.153: W/Unity(25830):
09-20 09:51:25.153: W/Unity(25830): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
09-20 09:51:25.393: W/Unity(25830): Failed to load target on start
09-20 09:51:25.393: W/Unity(25830):
09-20 09:51:25.393: W/Unity(25830): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
09-20 09:51:25.394: W/Unity(25830): Failed to load target on start
09-20 09:51:25.394: W/Unity(25830):
09-20 09:51:25.394: W/Unity(25830): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
I'm struggling to understand what causes this mysterious "Require Initialize!" I suspect it's some part of EasyAR. Can anyone help, please?
Unity 2017.3, Android 4.4, player settings are identical to that of a working AR-app, app key is correct.
UPD: the same on Android 7.1.2 and in Unity 2018.2
UPD2: after numerous tweaks I found out that there's nothing to do with
Require Initialize!
or
E/Unity (29813): java.net.UnknownHostException: Unable to resolve host "cdp.cloud.unity3d.com": No address associated with hostname
It's something with Unity 2018.2.0f. It breaks camera prefab on import or something and prevents videoinput from rendering on the screen. The recent errors are:
E/dalvikvm(16112): Could not find class 'java.lang.invoke.MethodHandles$Lookup', referenced from method bitter.jnibridge.JNIBridge$a.<init>
E/dalvikvm(16112): Could not find class 'java.lang.invoke.MethodHandles$Lookup', referenced from method bitter.jnibridge.JNIBridge$a.a
E/ (16112): appName=cn.easyar.samples.unity.targetonthefly, acAppName=/system/bin/surfaceflinger
E/ (16112): 0
E/ (16112): appName=cn.easyar.samples.unity.targetonthefly, acAppName=/system/bin/surfaceflinger
E/ (16112): 0
E/Sensors ( 680): new acc setDelay handle(0),ns(1000000) err! go to hwmsen
E/Unity (16112): (Filename: Line: 433)
Does anybody know how to solve this?