Cannot access IUnityPlayerLifecycleEvents class file for com.unity3d.player.IUnityPlayerLifecycleEve

I am Using Unity 2019.3.0b4 as Android Library

Demo scene works fine, but if I try to iherit from OverrideUnityActivity I get an Error.

1) Class generated by Unity

2) Second class generated by Unity
3) Try to extend class in second step
4) Got error error: cannot access IUnityPlayerLifecycleEvents
class file for com.unity3d.player.IUnityPlayerLifecycleEvents not found

Same here for Unity2019.3.0b6 user! For me, even the demo scene doesn’t work.!

starting from 2019.3.b4+, there is an updated Android example Integration Unity as a library in native Android app Version 2 that should work.

older example works in a range [2019.3.a2+ to 2019.3b4)

not working on unity 2019.3.7 as well

@justinduy Did you got solution. i am also facing same problem

make sure to include in the build.gradle(Module :app)
implementation fileTree(dir: project(':unityLibrary').getProjectDir().toString() + ('\\libs'), include: ['*.jar']

for me on Ubuntu
implementation fileTree(dir: project(':unityLibrary').getProjectDir().toString() + ('/libs'), include: ['*.jar']
and change “\” to “/” in
project(':unityLibrary').projectDir=[new](http://www.google.com/search?q=new+msdn.microsoft.com) File('..\\UnityProject\\androidBuild\\unityLibrary')
this worked.

7 Likes