Search Unity

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

Discussion in 'Android' started by xxxDOSxxx, Sep 24, 2019.

  1. xxxDOSxxx

    xxxDOSxxx

    Joined:
    Sep 29, 2016
    Posts:
    7
    I am Using Unity 2019.3.0b4 as Android Library
    https://forum.unity.com/threads/integration-unity-as-a-library-in-native-android-app.685240/
    Demo scene works fine, but if I try to iherit from OverrideUnityActivity I get an Error.
    photo_2019-09-24_19-30-05.jpg 1) Class generated by Unity
    photo_2019-09-24_19-30-14.jpg
    2) Second class generated by Unity
    photo_2019-09-24_19-30-19.jpg 3) Try to extend class in second step photo_2019-09-24_19-30-22.jpg
    4) Got error error: cannot access IUnityPlayerLifecycleEvents
    class file for com.unity3d.player.IUnityPlayerLifecycleEvents not found
     
  2. thetnswe

    thetnswe

    Joined:
    Aug 23, 2010
    Posts:
    46
    Same here for Unity2019.3.0b6 user! For me, even the demo scene doesn't work.!
     
    Last edited: Oct 6, 2019
  3. PavelLU

    PavelLU

    Unity Technologies

    Joined:
    Feb 23, 2017
    Posts:
    107
  4. justinduy

    justinduy

    Joined:
    Dec 26, 2016
    Posts:
    7
    not working on unity 2019.3.7 as well
     
  5. venbab

    venbab

    Joined:
    Jun 21, 2020
    Posts:
    1
    @justinduy Did you got solution. i am also facing same problem
     
  6. john10mwangi

    john10mwangi

    Joined:
    Jun 15, 2020
    Posts:
    1
    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=[URL='http://www.google.com/search?q=new+msdn.microsoft.com']new[/URL] File('..\\UnityProject\\androidBuild\\unityLibrary')

    this worked.