Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
@derwaldgeist

Description

  • Unity editor version: 2022362f1
  • 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

        AltStyle によって変換されたページ (->オリジナル) /