Skip to content

[Bug] Unity removes namespace in custom main gradle template #752

@derwaldgeist

Description

@derwaldgeist
  • Unity editor version: 2022.3.62f1
  • External Dependency Manager version: 1.2.176
  • Source you installed EDM4U: .unitypackage (IIRC)
  • Features in External Dependency Manager in use: Android Resolver, iOS Resolver
  • Plugins SDK in use: Facebook
  • Platform you are using the Unity editor on: Mac

I have a custom Gradle template that contains this line:

namespace "com.unity3d.player"

in this section:

// Android Resolver Exclusions Start
android {
	namespace "com.unity3d.player"
  packagingOptions {
      exclude ('/lib/armeabi/*' + '*')
      exclude ('/lib/mips/*' + '*')
      exclude ('/lib/mips64/*' + '*')
      exclude ('/lib/x86/*' + '*')
      exclude ('/lib/x86_64/*' + '*')
  }
}
// Android Resolver Exclusions End

Everytime I do the first Android build, Unity or Android resolver removes this namespace. Which then causes the gradle build to fail. If I re-add this line and start another build, everything runs through smoothly.

What is the reason for this behavior, and how can I resolve this?

What's the issue repro rate? 100%

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions