Search Unity

Facebook SDK AppCompat issue on Cloud Build

Discussion in 'Unity Build Automation' started by Chronos-L, Oct 1, 2018.

  1. Chronos-L

    Chronos-L

    Joined:
    Nov 29, 2012
    Posts:
    3
    I have been trying to integrate Facebook SDK into a game; while there were a few bumps along the road, i have solved those problem without a hitch. Currently, i am stuck at this roadblock and I need some tips and advice on tackling this error:

    477: [Unity] /BUILD_PATH/MANUALLY_CENSORING_THE_PACKAGE_HERE-android-build/Temp/gradleOut/build/intermediates/res/merged/release/values/values.xml:168: error: Error retrieving parent for item: No resource found that matches the given name '@StyLe/Theme.AppCompat.Dialog'.


    I am quite sure that it is a call made by the Facebook SDK to create an Android window; but I am not sure that I did wrong or what I have missed.

    Thoughts?
     
  2. nindim

    nindim

    Joined:
    Jan 22, 2013
    Posts:
    130
    Sounds like you are missing the required AAR/Jar files you should have in your "Assets/Plugins/Android" folder.

    The PlayServicesResolver should have downloaded everything required, but it can be a bit finicky. For example, I had to download the HTTPS certificate for https://services.gradle.org/distributions/ and add it to the trusted cert list. More info on that here:

    https://stackoverflow.com/questions...rget-but-browser-says?answertab=votes#tab-top

    I think I also had to add a dummy file: "C:\Users\<USERNAME>\.android\repositories.cfg"

    See here: https://stackoverflow.com/questions/43433542/stuck-at-android-repositories-cfg-could-not-be-loaded

    You should end up with something like this:

    upload_2019-1-24_23-36-43.png