Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Install on latest RN / Android Failing on Build #20

Open
dl-husky73 opened this issue Nov 11, 2019 · 1 comment
Open

Install on latest RN / Android Failing on Build #20

dl-husky73 opened this issue Nov 11, 2019 · 1 comment

Comments

@dl-husky73
Copy link

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
Copy link

JF-23 commented Jan 9, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants