Skip to main content
added 41 characters in body
Source Link
Frank
  • 12.3k
  • 8
  • 64
  • 81

Is it possible to exclude a package from an Android Gradle dependency so it does not end up inside the APK?

As:

dependencies { compile('com.facebook.android:facebook-android-sdk:4.17.0') {   exclude package 'com.facebook.share' } } 

but then different, because "package" is not a valid command.

Is it possible to exclude a package from an Android Gradle dependency so it does not end up inside the APK?

As:

compile('com.facebook.android:facebook-android-sdk:4.17.0') { exclude package 'com.facebook.share' } 

but then different, because "package" is not a valid command.

Is it possible to exclude a package from an Android Gradle dependency so it does not end up inside the APK?

As:

dependencies { compile('com.facebook.android:facebook-android-sdk:4.17.0') {   exclude package 'com.facebook.share' } } 

but then different, because "package" is not a valid command.

Source Link
Frank
  • 12.3k
  • 8
  • 64
  • 81

Gradle: exclude a dependency's package

Is it possible to exclude a package from an Android Gradle dependency so it does not end up inside the APK?

As:

compile('com.facebook.android:facebook-android-sdk:4.17.0') { exclude package 'com.facebook.share' } 

but then different, because "package" is not a valid command.