TapTargetView icon indicating copy to clipboard operation
TapTargetView copied to clipboard

Add support for AndroidX libraries

Open ShivamArora opened this issue 7 years ago • 1 comments

  • [x] I have verified the issue exists on the latest version
  • [x] I am able to reproduce it

Version used: 1.12.0 Stack trace: None Android version: Android 9.0

Starting with Android Pie 9.0, the AndroidX libraries are being preferred over the traditional Support libraries. I tried to refactor my code to AndroidX libraries but cannot use them with TapTargetView as it's dependent on the Support libraries.

Example: TapTargetView.forToolbarMenuItem() demands a Toolbar widget from the support library and I'm unable to use it with the AndroidX library.

ShivamArora avatar Oct 07 '18 09:10 ShivamArora

In the meantime you can try setting android.enableJetifier=true in your gradle.properties file (Assuming you use gradle).

https://developer.android.com/jetpack/androidx/

android.enableJetifier: When set to true, the Android plugin automatically migrates existing third-party libraries to use AndroidX by rewriting their binaries. The flag is false by default if it is not specified.

loganSims avatar Nov 15 '18 18:11 loganSims