Comments (16)
same here...compiles fine but crashes instantly on device (Zenfone AR)
from tango-examples-unity.
Don't worry, Tango isn't getting dropped. 2017.2 brings native Tango support and we're focused on making that awesome.
from tango-examples-unity.
Just tried with 2017.2 beta and the crash still exists. Will this be expected to be fixed when 2017.2 is released? This seems to suggest not unless it wont be fixed for the beta but will be for the release? Thanks for any insight
https://issuetracker.unity3d.com/issues/tango-the-project-with-imported-tango-sdk-crashes-both-on-non-tango-and-tango-devices
from tango-examples-unity.
Thanks for the bug report. We will look into the issue.
from tango-examples-unity.
here compiles fine but crashes on runtime instantly
Caused by: java.lang.NoSuchMethodError: No direct method <init>(Landroid/content/ContextWrapper;)V in class Lcom/unity3d/player/UnityPlayer; or its super classes (declaration of 'com.unity3d.player.UnityPlayer' appears in /data/app/com.DeltaCygniLabs.Pointr-2/base.apk) at com.google.unity.GoogleUnityActivity.onCreate(GoogleUnityActivity.java:106) at android.app.Activity.performCreate(Activity.java:6285) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2370) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2477) at android.app.ActivityThread.access$900(ActivityThread.java:150) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5418) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
from tango-examples-unity.
I'm getting the same on a Tango Example
from tango-examples-unity.
I still don't know why, but recompiling google_unity_wrapper.aar fixed the java.lang.NoSuchMethodError
runtime crash for me.
from tango-examples-unity.
I down graded to Unity 5.6.2p4 and everything works fine
from tango-examples-unity.
@danzeeeman even though what you say might work, I don't think is a solution for the long run.
@chaosemer also claims that for a stable Tango development we use Unity versions 5.2 - 5.6 in issue #103
My question is, when is Tango going to be supported in Unity 2017 for stable development?
Should we even be worried that the support for the tango plugin might get dropped?
from tango-examples-unity.
@ObjSal sorry how did you recompilet google_unity_wrapper.aar
from tango-examples-unity.
Sorry if I get something wrong, I paused my Tango development till Unity fixes the Tango support in Unity 2017+.
The below steps only fixed the issue where the app crashes with No direct method <init>(Landroid/content/ContextWrapper;)V in class Lcom/unity3d/player/UnityPlayer
when running from the device; debugging/running directly from Unity won't work.
Note that my case is not a usual scenario for Unity developers, because when I export the android project I include it as a library in another android project; here are the steps just in case it helps:
I downloaded the Tango libraries and copy them to the below locations:
AndroidIntegration/GoogleUnityWrapper/aar/tango-cloud-lib.aar AndroidIntegration/GoogleUnityWrapper/aar/tango-ux-support-library.aar AndroidIntegration/GoogleUnityWrapper/aar/tango_java_lib.aar AndroidIntegration/GoogleUnityWrapper/aar/tango_unity_helper.aar AndroidIntegration/GoogleUnityWrapper/aar/unity_ux_helper.aar
I then copy the unity-classes.jar from Unity 2017 and place it in:
AndroidIntegration/GoogleUnityWrapper/unity-classes.jar
Then I created a build.gradle within AndroidIntegration/GoogleUnityWrapper/, you may see the script within this gist as the formatting didn't work well here.
Then build using Android Studio:
The AAR file should be generated in the build output directory.
I hope Unity fixes their (or this plugin) implementation.
from tango-examples-unity.
from tango-examples-unity.
https://plus.google.com/103286785170955278420/posts/H6GGckGyvM7
Why not just use the aar I shared. And modify the DynamicMesh.cs yourself.
I just modify the byte code directly in the class. And it's working.
But I'm just curious whether anyone makes the 2017.2 built-in integration work. Mine reports failed to connect to Tango.
from tango-examples-unity.
How to solve this?
08-25 10:39:56.730: E/AndroidRuntime(8738): Caused by: java.lang.NoSuchMethodError: No direct method <init>(Landroid/content/ContextWrapper;)V in class Lcom/unity3d/player/UnityPlayer; or its super classes (declaration of 'com.unity3d.player.UnityPlayer' appears in /data/app/com.xyz.abc/base.apk)
from tango-examples-unity.
Read the google plus post above. @neelkadia
from tango-examples-unity.
Thank you @SetoKaiba.
Life savior.
Same scenario: 2017.1f1 version and Asus AR.
Guys, don't forget to add || UNITY_2017 at line 628 in TangoDynamicMesh.cs
from tango-examples-unity.
Related Issues (20)
- Bug with AreaLearning example - Markers offset when saving HOT 3
- Markerdetection - 3D markers
- 2017 beta new tango api crashes HOT 1
- Area Learning Example: Loop Closure correction not working HOT 3
- ASUS DllNotFoundException: tango_client_api HOT 4
- Saving an area freezes Unity main loop, despite using new thread HOT 2
- ExperimentalFloorFinding sample not working. HOT 4
- Is 3D-reconstruction available on a newly relocalized ADF? HOT 1
- Problems with ExperimentalMeshBuilder HOT 3
- Saving large areas takes forever
- Not getting progress updates saving Area Description
- 2017.2 new tango api crashes with ARBackgroundRenderer HOT 3
- How to export the AugmentedReality scenes from the UnityExample?
- Dual camera to replace depth camera
- I get NullReferenceException when trying to register inTangoArScreen script
- Tango library not found when compiling on Asus Zenphone AR with target sdk version = 24
- URGENT: Tango Tablet issues since latest updates (none of the Tango SDK examples work properly; previous apps don't work anymore) HOT 12
- Export ADF file doesn't work - Unity-Tango SDK "AreaDescriptionManagement" example HOT 2
- "Error : Failed to Connect to Tango Services" after updating to Hopak release in Unity HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tango-examples-unity.