Search Unity

No resource identifier found for attribute 'appComponentFactory' in package 'android'

Discussion in 'Unity Build Automation' started by GAMEDIA_Justin, Nov 6, 2018.

  1. GAMEDIA_Justin

    GAMEDIA_Justin

    Joined:
    Mar 29, 2017
    Posts:
    19
    Description of issue: I'm getting the following error in Unity Cloud Build: No resource identifier found for attribute 'appComponentFactory' in package 'android'. I don't have this in my local build.

    Unity version: 2017.4.14f1

    XCode version: -

    Source control: Bitbucket

    Local build platform: Windows 10

    Build target: Android (Gradle build, with target SDK 28, minimum SDK 19)

    Relevant plugins being used: OneSignal, UMP Pro and a couple of custom plugins.

    Project name: -

    Build log (relevant chunk):

    Does it build locally from a fresh checkout? Yes

    If you need more information, just let me know.
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    appComponentFactory appears to have been added in Android API level 28.
    Locally, you might have that installed so it works, perhaps it's not available or not set to be used.

    What is the Android target SDK level you have set in your player settings and in your custom Android manifest (if you have one) ?
     
  3. GAMEDIA_Justin

    GAMEDIA_Justin

    Joined:
    Mar 29, 2017
    Posts:
    19
    Yeah, I had 28 as target SDK in my manifest and also in my custom aar plugins. Lowering them in the manifest and my custom aar plugins fixed the problem for cloud build.
     
    Deleted User likes this.