运行 npm运行android 后,出现此错误:-我也 尝试。\ gradlew干净导航到android文件夹。建立是 成功,但没有任何反应。在我的路径中添加了可变javac。 为什么发生这种情况,有人可以告诉我吗?我可以偷东西吗?
app:generateDebugSources
app:incrementalDebugJavaCompilationSafeguard
app:compileDebugJavaWithJavac
app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:\Users\sandip\Desktop\Prabhuji\android\app\src\main\java\com\emptyprojecttemplate\MainApplication.java:5: error: cannot find symbol
mport com.facebook.react.ReactApplication;
^
symbol: class ReactApplication
location: package com.facebook.react
:\Users\sandip\Desktop\Prabhuji\android\app\src\main\java\com\emptyprojecttemplate\MainApplication.java:6: error: cannot find symbol
mport com.facebook.react.ReactNativeHost;
^
symbol: class ReactNativeHost
location: package com.facebook.react
:\Users\sandip\Desktop\Prabhuji\android\app\src\main\java\com\emptyprojecttemplate\MainApplication.java:14: error: cannot find symbol
ublic class MainApplication extends Application implements ReactApplication {
^
symbol: class ReactApplication
:\Users\sandip\Desktop\Prabhuji\android\app\src\main\java\com\emptyprojecttemplate\MainApplication.java:16: error: cannot find symbol
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
^
symbol: class ReactNativeHost
location: class MainApplication
:\Users\sandip\Desktop\Prabhuji\android\app\src\main\java\com\emptyprojecttemplate\MainApplication.java:36: error: cannot find symbol
public ReactNativeHost getReactNativeHost() {
^
symbol: class ReactNativeHost
location: class MainApplication
:\Users\sandip\Desktop\Prabhuji\android\app\src\main\java\com\emptyprojecttemplate\MainActivity.java:5: error: MainActivity is not abstract and does not override abstract method getPackages() in ReactActivity
ublic class MainActivity extends ReactActivity {
^
:\Users\sandip\Desktop\Prabhuji\android\app\src\main\java\com\emptyprojecttemplate\MainApplication.java:16: error: cannot find symbol
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
^
symbol: class ReactNativeHost
location: class MainApplication
:\Users\sandip\Desktop\Prabhuji\android\app\src\main\java\com\emptyprojecttemplate\MainApplication.java:35: error: method does not override or implement a method from a supertype
@Override
^
errors
app:compileDebugJavaWithJavac FAILED