Android 弹出到本机后出现ModuleRegistryConsumer错误
我使用expo work flow创建了一个项目,但出于某种原因,我不得不将其弹出以显示本地工作流程。弹出后,如果我安装了任何expo软件包。在android build上,它给了我一个错误,主要与ModuleRegistryConsumer有关。对于包中的各种文件,我都会遇到此错误Android 弹出到本机后出现ModuleRegistryConsumer错误,android,react-native,expo,Android,React Native,Expo,我使用expo work flow创建了一个项目,但出于某种原因,我不得不将其弹出以显示本地工作流程。弹出后,如果我安装了任何expo软件包。在android build上,它给了我一个错误,主要与ModuleRegistryConsumer有关。对于包中的各种文件,我都会遇到此错误 BUILD FAILED in 11s error Failed to install the app. Make sure you have the Android development environmen
BUILD FAILED in 11s
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:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\expo-av\android\src\main\java\expo\modules\av\AVManager.java:23: error: cannot find symbol
import org.unimodules.core.interfaces.ModuleRegistryConsumer;
^
symbol: class ModuleRegistryConsumer
location: package org.unimodules.core.interfaces
D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\expo-av\android\src\main\java\expo\modules\av\AVManager.java:45: error: cannot find symbol
public class AVManager implements LifecycleEventListener, AudioManager.OnAudioFocusChangeListener, MediaRecorder.OnInfoListener, AVManagerInterface, InternalModule, ModuleRegistryConsumer {
^
symbol: class ModuleRegistryConsumer
D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\expo-av\android\src\main\java\expo\modules\av\video\VideoViewManager.java:14: error: cannot find symbol
import org.unimodules.core.interfaces.ModuleRegistryConsumer;
^
symbol: class ModuleRegistryConsumer
location: package org.unimodules.core.interfaces
D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\expo-av\android\src\main\java\expo\modules\av\video\VideoViewManager.java:16: error: cannot find symbol
public class VideoViewManager extends ViewManager<VideoViewWrapper> implements ModuleRegistryConsumer {
^
symbol: class ModuleRegistryConsumer
D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\expo-av\android\src\main\java\expo\modules\av\AVModule.java:10: error: cannot find symbol
import org.unimodules.core.interfaces.ModuleRegistryConsumer;
^
symbol: class ModuleRegistryConsumer
location: package org.unimodules.core.interfaces
D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\expo-av\android\src\main\java\expo\modules\av\AVModule.java:12: error: cannot find symbol
public class AVModule extends ExportedModule implements ModuleRegistryConsumer {
^
symbol: class ModuleRegistryConsumer
D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\expo-av\android\src\main\java\expo\modules\av\video\VideoManager.java:15: error: cannot find symbol
import org.unimodules.core.interfaces.ModuleRegistryConsumer;
^
symbol: class ModuleRegistryConsumer
location: package org.unimodules.core.interfaces
D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\expo-av\android\src\main\java\expo\modules\av\video\VideoManager.java:18: error: cannot find symbol
public class VideoManager extends ExportedModule implements ModuleRegistryConsumer {
^
symbol: class ModuleRegistryConsumer
D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\expo-av\android\src\main\java\expo\modules\av\AVManager.java:119: error: method does not override or implement a method from a supertype
@Override
^
D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\expo-av\android\src\main\java\expo\modules\av\AVManager.java:503: error: cannot find symbol
return mModuleRegistry.getModule(Permissions.class).getPermission(Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED;
^
symbol: method getPermission(String)
location: interface Permissions
D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\expo-av\android\src\main\java\expo\modules\av\video\VideoViewManager.java:26: error: method does not override or implement a method from a supertype
@Override
^
D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\expo-av\android\src\main\java\expo\modules\av\AVModule.java:24: error: method does not override or implement a method from a supertype
@Override
^
D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\expo-av\android\src\main\java\expo\modules\av\video\VideoManager.java:42: error: method does not override or implement a method from a supertype
@Override
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\expo-av\android\src\main\java\expo\modules\av\player\PlayerData.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
13 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':expo-av:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 11s
at checkExecSyncError (child_process.js:621:11)
at execFileSync (child_process.js:639:15)
at runOnAllDevices (D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at processTicksAndRejections (internal/process/task_queues.js:85:5)
at async Command.handleAction (D:\ReactNativeProjects\EjectTest\ejecttest1\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:164:9)
生成在11秒内失败
安装应用程序失败时出错。确保已设置Android开发环境:https://facebook.github.io/react-native/docs/getting-started.html#android-发展环境。有关详细信息,请使用--verbose标志运行CLI。
错误:命令失败:gradlew.bat应用程序:installDebug-PreactNativeDevServerPort=8081
D:\ReactNativeProjects\EjectTest\ejecttest1\node\U modules\expo av\android\src\main\java\expo\modules\av\AVManager。java:23:错误:找不到符号
导入org.unimodules.core.interfaces.ModuleRegistryConsumer;
^
符号:类别模块注册用户
位置:包org.unimodules.core.interfaces
D:\ReactNativeProjects\EjectTest\ejecttest1\node\U modules\expo av\android\src\main\java\expo\modules\av\AVManager。java:45:错误:找不到符号
公共类AVManager实现生命周期EventListener、AudioManager.OnAudioFocusChangeListener、MediaRecorder.OnInfo Listener、AVManagerInterface、InternalModule、ModuleRegistryConsumer{
^
符号:类别模块注册用户
D:\ReactNativeProjects\EjectTest\ejecttest1\node\U modules\expo av\android\src\main\java\expo\modules\av\video\VideoViewManager。java:14:错误:找不到符号
导入org.unimodules.core.interfaces.ModuleRegistryConsumer;
^
符号:类别模块注册用户
位置:包org.unimodules.core.interfaces
D:\ReactNativeProjects\EjectTest\ejecttest1\node\U modules\expo av\android\src\main\java\expo\modules\av\video\VideoViewManager。java:16:错误:找不到符号
公共类VideoViewManager扩展ViewManager实现ModuleRegistryConsumer{
^
符号:类别模块注册用户
D:\ReactNativeProjects\EjectTest\ejecttest1\node\U modules\expo av\android\src\main\java\expo\modules\av\AVModule。java:10:错误:找不到符号
导入org.unimodules.core.interfaces.ModuleRegistryConsumer;
^
符号:类别模块注册用户
位置:包org.unimodules.core.interfaces
D:\ReactNativeProjects\EjectTest\ejecttest1\node\U modules\expo av\android\src\main\java\expo\modules\av\AVModule。java:12:错误:找不到符号
公共类AVModule扩展ExportedModule实现ModuleRegistryConsumer{
^
符号:类别模块注册用户
D:\ReactNativeProjects\EjectTest\ejecttest1\node\U modules\expo av\android\src\main\java\expo\modules\av\video\VideoManager。java:15:错误:找不到符号
导入org.unimodules.core.interfaces.ModuleRegistryConsumer;
^
符号:类别模块注册用户
位置:包org.unimodules.core.interfaces
D:\ReactNativeProjects\EjectTest\ejecttest1\node\U modules\expo av\android\src\main\java\expo\modules\av\video\VideoManager。java:18:错误:找不到符号
公共类VideoManager扩展ExportedModule实现ModuleRegistryConsumer{
^
符号:类别模块注册用户
D:\ReactNativeProjects\EjectTest\ejecttest1\node\U modules\expo av\android\src\main\java\expo\modules\av\AVManager。java:119:错误:方法不重写或实现超类型中的方法
@凌驾
^
D:\ReactNativeProjects\EjectTest\ejecttest1\node\U modules\expo av\android\src\main\java\expo\modules\av\AVManager。java:503:错误:找不到符号
返回mModuleRegistry.getModule(Permissions.class).getPermission(Manifest.permission.RECORD_AUDIO)!=PackageManager.permission_provided;
^
符号:方法getPermission(字符串)
位置:接口权限
D:\ReactNativeProjects\EjectTest\ejecttest1\node\U modules\expo av\android\src\main\java\expo\modules\av\video\VideoViewManager。java:26:错误:方法不重写或实现超类型中的方法
@凌驾
^
D:\ReactNativeProjects\EjectTest\ejecttest1\node\U modules\expo av\android\src\main\java\expo\modules\av\AVModule。java:24:错误:方法不重写或实现超类型中的方法
@凌驾
^
D:\ReactNativeProjects\EjectTest\ejecttest1\node\U modules\expo av\android\src\main\java\expo\modules\av\video\VideoManager。java:42:错误:方法不重写或实现超类型中的方法
@凌驾
^
注意:某些输入文件使用或覆盖不推荐使用的API。
注意:有关详细信息,请使用-Xlint:deprecation重新编译。
注意:D:\ReactNativeProjects\EjectTest\ejecttest1\node\U modules\expo av\android\src\main\java\expo\modules\av\player\PlayerData.java使用未经检查或不安全的操作。
注意:使用-Xlint重新编译:未选中以获取详细信息。
13个错误
失败:生成失败,出现异常。
*出了什么问题:
任务“:expo av:CompiledBugJavaWithJavaC”的执行失败。
>编译失败;有关详细信息,请参阅编译器错误输出。
*尝试:
使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。使用--scan运行以获取完整的细节。
*得到更多的帮助https://help.gradle.org
生成在11秒内失败
在checkExecSyncError(child_process.js:621:11)
在execFileSync(child_process.js:639:15)
在runOnAllDevices上(D:\ReactNativeProjects\EjectTest\ejecttest1\node\u modules\@react native community\cli platform android\build\commands\runAndroid\runOnAllDevices.js:94:39)