Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apk build by Unity 2017.1.0f3 crash. #222

Closed
Ellisonlee opened this issue Jul 21, 2017 · 5 comments
Closed

apk build by Unity 2017.1.0f3 crash. #222

Ellisonlee opened this issue Jul 21, 2017 · 5 comments

Comments

@Ellisonlee
Copy link

Ellisonlee commented Jul 21, 2017

The apk crashed when started by error

java.lang.NoSuchMethodError: com.unity3d.player.UnityPlayer.

@KojiNakamaru
Copy link
Member

At least the sample app seems to run well on Nexus 7 (2017)/Android 6.0.1.

@Ellisonlee
Copy link
Author

try to work with the latest plugin. thx.

@KojiNakamaru
Copy link
Member

Of course I utilize the latest plugin and it works without any issue.

@mhozumi
Copy link

mhozumi commented Jul 25, 2017

I had a same problem.

I changed CUnityPlayer.java from
public CUnityPlayer(ContextWrapper contextwrapper)
to
public CUnityPlayer(Context contextwrapper)

Because, the constructor of Unity 2017's classes.jar is public UnityPlayer(Context context).

*I add dependences in build.gradle.
provided files ({Unity2017 Directory}/Editor/Data/PlaybackEngines/AndroidPlayer/Variations/mono/Release/Classes/classes.jar')

@KojiNakamaru
Copy link
Member

You don't need to utilize custom CUnityPlayer.java anymore.
cf. https://github.com/gree/unity-webview#android
cf. #221 (comment)
cf. #212 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants