capacitor-branch-deep-links icon indicating copy to clipboard operation
capacitor-branch-deep-links copied to clipboard

Package android.support.annotation does not exist

Open rodrigoreal opened this issue 4 years ago • 1 comments

node_modules\capacitor-branch-deep-links\android\src\main\java\co\boundstate\BranchDeepLinks.java:5: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
                                 ^
node_modules\capacitor-branch-deep-links\android\src\main\java\co\boundstate\BranchDeepLinks.java:21: error: cannot find symbol
    @Nullable
     ^
  symbol:   class Nullable
  location: class BranchDeepLinks
2 errors

rodrigoreal avatar Jul 29 '20 03:07 rodrigoreal

We've run into this issue both on a React Native project, and an Ionic/Capacitor project as well. If you take a look at this SO question, the top answer provides a solution that worked for us:

https://stackoverflow.com/questions/40380519/error-package-com-android-annotations-does-not-exist

i.e. set your Android flags correctly and run jetify.

paulhalfpenny avatar Aug 07 '20 10:08 paulhalfpenny