GithubHelp home page GithubHelp logo

Comments (16)

ultra-sonic avatar ultra-sonic commented on July 17, 2024 1

same here...compiles fine but crashes instantly on device (Zenfone AR)

from tango-examples-unity.

chaosemer avatar chaosemer commented on July 17, 2024 1

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.

YohanBaillot avatar YohanBaillot commented on July 17, 2024 1

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.

bopangzz avatar bopangzz commented on July 17, 2024

Thanks for the bug report. We will look into the issue.

from tango-examples-unity.

friuns2 avatar friuns2 commented on July 17, 2024

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.

danzeeeman avatar danzeeeman commented on July 17, 2024

I'm getting the same on a Tango Example

from tango-examples-unity.

ObjSal avatar ObjSal commented on July 17, 2024

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.

danzeeeman avatar danzeeeman commented on July 17, 2024

I down graded to Unity 5.6.2p4 and everything works fine

from tango-examples-unity.

salgue avatar salgue commented on July 17, 2024

@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.

aresares avatar aresares commented on July 17, 2024

@ObjSal sorry how did you recompilet google_unity_wrapper.aar

from tango-examples-unity.

ObjSal avatar ObjSal commented on July 17, 2024

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:
screen shot 2017-08-21 at 12 36 08 pm

The AAR file should be generated in the build output directory.

I hope Unity fixes their (or this plugin) implementation.

from tango-examples-unity.

YohanBaillot avatar YohanBaillot commented on July 17, 2024

from tango-examples-unity.

SetoKaiba avatar SetoKaiba commented on July 17, 2024

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.

neelkadia-zz avatar neelkadia-zz commented on July 17, 2024

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.

SetoKaiba avatar SetoKaiba commented on July 17, 2024

Read the google plus post above. @neelkadia

from tango-examples-unity.

developer-power-ro avatar developer-power-ro commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.