Всем привет. Установил модуль react native device info чтобы узнавать id андроид устройства. Но при запуске выдает ошибку. Прописал линки через react-native link react-native-device-info. После unlink также не запускается.
C:\apps\react\showdriver\android\app\src\main\java\com\showdriver\MainActivity.java:3: error: package com.facebook.react does not exist
import com.facebook.react.ReactActivity;
^
C:\apps\react\showdriver\android\app\src\main\java\com\showdriver\MainActivity.java:5: error: cannot find symbol
public class MainActivity extends ReactActivity {
^
symbol: class ReactActivity
C:\apps\react\showdriver\android\app\src\main\java\com\showdriver\MainApplication.java:6: error: package com.facebook.react does not exist
import com.facebook.react.ReactApplication;
^
C:\apps\react\showdriver\android\app\src\main\java\com\showdriver\MainApplication.java:7: error: package com.facebook.react does not exist
import com.facebook.react.ReactInstanceManager;
^
C:\apps\react\showdriver\android\app\src\main\java\com\showdriver\MainApplication.java:8: error: package com.facebook.react does not exist
import com.facebook.react.ReactNativeHost;
^
C:\apps\react\showdriver\android\app\src\main\java\com\showdriver\MainApplication.java:9: error: package com.facebook.react does not exist
import com.facebook.react.ReactPackage;
^
C:\apps\react\showdriver\android\app\src\main\java\com\showdriver\MainApplication.java:10: error: package com.facebook.react.shell does not exist
import com.facebook.react.shell.MainReactPackage;
^
C:\apps\react\showdriver\android\app\src\main\java\com\showdriver\MainApplication.java:15: error: cannot find symbol
public class MainApplication extends Application implements ReactApplication {
^
symbol: class ReactApplication
C:\apps\react\showdriver\android\app\src\main\java\com\showdriver\MainApplication.java:17: error: cannot find symbol
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
^
symbol: class ReactNativeHost
location: class MainApplication
C:\apps\react\showdriver\android\app\src\main\java\com\showdriver\MainApplication.java:30: error: cannot find symbol
public ReactNativeHost getReactNativeHost() {
^
symbol: class ReactNativeHost
location: class MainApplication
C:\apps\react\showdriver\android\app\src\main\java\com\showdriver\MainActivity.java:11: error: method does not override or implement a method from a supertype
@Override
^
C:\apps\react\showdriver\android\app\src\main\java\com\showdriver\MainApplication.java:17: error: cannot find symbol
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
^
symbol: class ReactNativeHost
location: class MainApplication
12 errors
:app:compileDebugJavaWithJavac FAILED