Export to Android Studio gradle error "No resource found that matches the given name '"

Hi,
I have lib in project (Assets/Plugins/Android)

When i export to Android Studio with gradle (default import) and try to run project i get error in AndroidManifest.xml:

Error:(114, 28) No resource found that matches the given name (at ‘theme’ with value ’ @ /KongregateDialogTheme’).

This resource exists in folder after export (LibName/res/) by andorid studio project doesn’t find this resource.

Structure of lib in project (Unity)
Assets/Plugins/Android/LibName/

  • AndroidManifest.xml
  • res
  • libs
  • project.properties

Unity version 5.3.5f1

Did you find a solution?

Have a look at Unity - Manual: Gradle for Android
If none of those solve your problem, you might consider upgrading to later version of Unity that has improved Gradle export.

This is not a gradle export, but an ADT export.
@Shadowagv there’s a Gradle export option in 5.5 - would you consider upgrading? :slight_smile: