android – Error building react native project with the package "opentok-react-native"-ThrowExceptions

Exception or error:

I’m trying to build a React Native project which uses opentok-react-native version 0.12.2. When running my android build it fails with the following error complaining that the android support annotation package does not exist. Has anyone experienced this before?

Task :opentok-react-native:compileDebugJavaWithJavac FAILED
error: package does not exist
How to solve:

This is not the error from react native package.
This error accrued because of conflict between your Android SDK and package SDK version.
check their SDK version and install same SDK as theirs or you can fix it by importing required packages but it might take your lot of time if you don’t have knowledge about android.
Here is how you can fix that
react native build error: package does not exist

Leave a Reply

Your email address will not be published. Required fields are marked *