lightbasenl / react-native-panorama-view

A simple component for displaying panoramic images in your React Native app.
MIT License
127 stars 47 forks source link

Install on latest RN / Android Failing on Build #20

Open dl-husky73 opened 4 years ago

dl-husky73 commented 4 years ago

Installed on RN 61.4 and running on page with react-native-video (not sure if conflicts). But on build, getting the following error. Checked the manual instructions, fixed a couple things and seems to be correct. Nullable errors, can't find symbols and security warnings.

Any ideas?

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 D:\CopperMine\Tech_WorkArea\Dev\gcloud\guidesly-app\node_modules\@lightbase\react-native-panorama-view\android\src\main\java\nl\lightbase\PanoramaViewManager.java:6: error: package android.support.annotation does not exist import android.support.annotation.Nullable;

D:\CopperMine\Tech_WorkArea\Dev\gcloud\guidesly-app\node_modules\@lightbase\react-native-panorama-view\android\src\main\java\nl\lightbase\PanoramaViewManager.java:100: error: cannot find symbol public @Nullable Map getExportedCustomDirectEventTypeConstants() { ^ symbol: class Nullable location: class PanoramaViewManager D:\CopperMine\Tech_WorkArea\Dev\gcloud\guidesly-app\node_modules\@lightbase\react-native-panorama-view\android\src\main\java\nl\lightbase\PanoramaViewManager.java:254: error: cannot find symbol private void emitEvent(String name, @Nullable WritableMap event) { ^ symbol: class Nullable location: class PanoramaViewManager Note: D:\CopperMine\Tech_WorkArea\Dev\gcloud\guidesly-app\node_modules\@lightbase\react-native-panorama-view\android\src\main\java\nl\lightbase\PanoramaViewManager.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 errors

JF-23 commented 4 years ago

You might just have to delete 'import android.support.annotation.Nullable;' and automatically import '@Nullable'