./gradlew clean assembleDebug 작동시 에러

Holyday33·2022년 6월 10일
0
post-custom-banner

문제

symbol:   class Context
  location: class ViewManager<V>
  where V is a type-variable:
    V declared in class ViewManager
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/ExportedModule.java:37: error: cannot find symbol
  private Context mContext;
          ^
  symbol:   class Context
  location: class ExportedModule
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/ExportedModule.java:41: error: cannot find symbol
  public ExportedModule(Context context) {
                        ^
  symbol:   class Context
  location: class ExportedModule
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/ExportedModule.java:51: error: cannot find symbol
  protected Context getContext() {
            ^
  symbol:   class Context
  location: class ExportedModule
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/ModuleRegistryProvider.java:3: error: package android.content does not exist
import android.content.Context;
                      ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/ModuleRegistryProvider.java:28: error: cannot find symbol
  public ModuleRegistry get(Context context) {
                            ^
  symbol:   class Context
  location: class ModuleRegistryProvider
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/ModuleRegistryProvider.java:37: error: cannot find symbol
  public Collection<InternalModule> createInternalModules(Context context) {
                                                          ^
  symbol:   class Context
  location: class ModuleRegistryProvider
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/ModuleRegistryProvider.java:45: error: cannot find symbol
  public Collection<ExportedModule> createExportedModules(Context context) {
                                                          ^
  symbol:   class Context
  location: class ModuleRegistryProvider
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/ModuleRegistryProvider.java:53: error: cannot find symbol
  public Collection<ViewManager> createViewManagers(Context context) {
                                                    ^
  symbol:   class Context
  location: class ModuleRegistryProvider
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/ModuleRegistryProvider.java:61: error: cannot find symbol
  public Collection<SingletonModule> createSingletonModules(Context context) {
                                                            ^
  symbol:   class Context
  location: class ModuleRegistryProvider
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/BasePackage.java:20: error: cannot find symbol
  public List<InternalModule> createInternalModules(Context context) {
                                                    ^
  symbol:   class Context
  location: class BasePackage
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/BasePackage.java:25: error: cannot find symbol
  public List<ExportedModule> createExportedModules(Context context) {
                                                    ^
  symbol:   class Context
  location: class BasePackage
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/BasePackage.java:30: error: cannot find symbol
  public List<ViewManager> createViewManagers(Context context) {
                                              ^
  symbol:   class Context
  location: class BasePackage
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/BasePackage.java:35: error: cannot find symbol
  public List<SingletonModule> createSingletonModules(Context context) {
                                                      ^
  symbol:   class Context
  location: class BasePackage
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/BasePackage.java:40: error: cannot find symbol
  public List<ApplicationLifecycleListener> createApplicationLifecycleListeners(Context context) {
                                                                                ^
  symbol:   class Context
  location: class BasePackage
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/BasePackage.java:45: error: cannot find symbol
  public List<? extends ReactNativeHostHandler> createReactNativeHostHandlers(Context context) {
                                                                              ^
  symbol:   class Context
  location: class BasePackage
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/BasePackage.java:50: error: cannot find symbol
  public List<ReactActivityLifecycleListener> createReactActivityLifecycleListeners(Context activityContext) {
                                                                                    ^
  symbol:   class Context
  location: class BasePackage
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/BasePackage.java:55: error: cannot find symbol
  public List<ReactActivityHandler> createReactActivityHandlers(Context activityContext) {
                                                                ^
  symbol:   class Context
  location: class BasePackage
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/arguments/ReadableArguments.java:3: error: package android.os does not exist
import android.os.Bundle;
                 ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/arguments/ReadableArguments.java:66: error: cannot find symbol
  default Bundle toBundle() {
          ^
  symbol:   class Bundle
  location: interface ReadableArguments
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/interfaces/ActivityEventListener.java:9: error: cannot find symbol
  public void onActivityResult(Activity activity, int requestCode, int resultCode, @Nullable Intent data);
                               ^
  symbol:   class Activity
  location: interface ActivityEventListener
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/interfaces/ActivityEventListener.java:9: error: cannot find symbol
  public void onActivityResult(Activity activity, int requestCode, int resultCode, @Nullable Intent data);
                                                                                             ^
  symbol:   class Intent
  location: interface ActivityEventListener
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/interfaces/ActivityEventListener.java:12: error: cannot find symbol
  public void onNewIntent(Intent intent);
                          ^
  symbol:   class Intent
  location: interface ActivityEventListener
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/interfaces/ActivityProvider.java:6: error: cannot find symbol
  Activity getCurrentActivity();
  ^
  symbol:   class Activity
  location: interface ActivityProvider
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/interfaces/services/UIManager.java:3: error: package android.view does not exist
import android.view.View;
                   ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/interfaces/services/UIManager.java:16: error: cannot find symbol
    View get(Object key);
    ^
  symbol:   class View
  location: interface ViewHolder
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/interfaces/services/EventEmitter.java:25: error: cannot find symbol
  void emit(int viewId, String eventName, Bundle eventBody);
                                          ^
  symbol:   class Bundle
  location: interface EventEmitter
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/interfaces/services/EventEmitter.java:26: error: cannot find symbol
  void emit(String eventName, Bundle eventBody);
                              ^
  symbol:   class Bundle
  location: interface EventEmitter
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/interfaces/services/EventEmitter.java:10: error: cannot find symbol
    Bundle getEventBody();
    ^
  symbol:   class Bundle
  location: interface Event
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/ReactModuleRegistryProvider.java:44: error: cannot find symbol
  public ModuleRegistry get(Context context) {
                            ^
  symbol:   class Context
  location: class ReactModuleRegistryProvider
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/ReactModuleRegistryProvider.java:63: error: cannot find symbol
  private Collection<SingletonModule> getSingletonModules(Context context) {
                                                          ^
  symbol:   class Context
  location: class ReactModuleRegistryProvider
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/ReactModuleRegistryProvider.java:78: error: cannot find symbol
  public Collection<ViewManager> getViewManagers(Context context) {
                                                 ^
  symbol:   class Context
  location: class ReactModuleRegistryProvider
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/ReactAdapterPackage.java:26: error: cannot find symbol
  public List<InternalModule> createInternalModules(Context context) {
                                                    ^
  symbol:   class Context
  location: class ReactAdapterPackage
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/NativeModulesProxy.java:3: error: package android.util does not exist
import android.util.SparseArray;
                   ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/NativeModulesProxy.java:53: error: cannot find symbol
  private Map<String, SparseArray<String>> mExportedMethodsReverseKeys;
                      ^
  symbol:   class SparseArray
  location: class NativeModulesProxy
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/views/SimpleViewManagerAdapter.java:18: error: cannot find symbol
public class SimpleViewManagerAdapter<M extends ViewManager<V>, V extends View> extends SimpleViewManager<V> implements RegistryLifecycleListener {
                                                                          ^
  symbol: class View
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/views/ViewManagerAdapterUtils.java:3: error: package android.util does not exist
import android.util.Log;
                   ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/views/ViewManagerAdapterUtils.java:40: error: cannot find symbol
  /* package */ static <V extends View> void setProxiedProperties(String viewManagerAdapterName, ViewManager<V> viewManager, V view, ReadableMap proxiedProperties) {
                                  ^
  symbol:   class View
  location: class ViewManagerAdapterUtils
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/views/ViewGroupManagerAdapter.java:3: error: package android.view does not exist
import android.view.ViewGroup;
                   ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/views/ViewGroupManagerAdapter.java:18: error: cannot find symbol
public class ViewGroupManagerAdapter<M extends ViewManager<V>, V extends ViewGroup> extends ViewGroupManager<V> implements RegistryLifecycleListener {
                                                                         ^
  symbol: class ViewGroup
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/services/EventEmitterModule.java:25: error: cannot find symbol
  public void emit(String eventName, Bundle eventBody) {
                                     ^
  symbol:   class Bundle
  location: class EventEmitterModule
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/services/EventEmitterModule.java:35: error: cannot find symbol
  public void emit(final int viewId, final String eventName, final Bundle eventBody) {
                                                                   ^
  symbol:   class Bundle
  location: class EventEmitterModule
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/services/FontManagerModule.java:3: error: package android.graphics does not exist
import android.graphics.Typeface;
                       ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/font/FontManagerInterface.java:3: error: package android.graphics does not exist
import android.graphics.Typeface;
                       ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/services/FontManagerModule.java:21: error: cannot find symbol
  public void setTypeface(String fontFamilyName, int style, Typeface typeface) {
                                                            ^
  symbol:   class Typeface
  location: class FontManagerModule
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/font/FontManagerInterface.java:6: error: cannot find symbol
  void setTypeface(String fontFamilyName, int style, Typeface typeface);
                                                     ^
  symbol:   class Typeface
  location: interface FontManagerInterface
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/services/UIManagerModuleWrapper.java:5: error: package android.util does not exist
import android.util.Log;
                   ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/services/UIManagerModuleWrapper.java:205: error: cannot find symbol
  public Activity getCurrentActivity() {
         ^
  symbol:   class Activity
  location: class UIManagerModuleWrapper
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/sensors/SensorServiceInterface.java:3: error: package android.hardware does not exist
import android.hardware.SensorEventListener2;
                       ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/sensors/SensorServiceInterface.java:6: error: cannot find symbol
  SensorServiceSubscriptionInterface createSubscriptionForListener(SensorEventListener2 sensorEventListener);
                                                                   ^
  symbol:   class SensorEventListener2
  location: interface SensorServiceInterface
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/taskManager/TaskConsumer.java:3: error: package android.app.job does not exist
import android.app.job.JobParameters;
                      ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/taskManager/TaskConsumer.java:4: error: package android.app.job does not exist
import android.app.job.JobService;
                      ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/taskManager/TaskConsumerInterface.java:3: error: package android.app.job does not exist
import android.app.job.JobParameters;
                      ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/taskManager/TaskConsumerInterface.java:4: error: package android.app.job does not exist
import android.app.job.JobService;
                      ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/taskManager/TaskConsumer.java:21: error: cannot find symbol
  private WeakReference<Context> mContextRef;
                        ^
  symbol:   class Context
  location: class TaskConsumer
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/taskManager/TaskManagerUtilsInterface.java:3: error: package android.app does not exist
import android.app.PendingIntent;
                  ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/taskManager/TaskManagerUtilsInterface.java:4: error: package android.app.job does not exist
import android.app.job.JobParameters;
                      ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/taskManager/TaskManagerUtilsInterface.java:6: error: package android.os does not exist
import android.os.PersistableBundle;
                 ^
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/taskManager/TaskConsumer.java:24: error: cannot find symbol
  public TaskConsumer(Context context, TaskManagerUtilsInterface taskManagerUtils) {
                      ^
  symbol:   class Context
  location: class TaskConsumer
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/taskManager/TaskConsumer.java:29: error: cannot find symbol
  protected Context getContext() {
            ^
  symbol:   class Context
  location: class TaskConsumer
/Users/timothy/project/capstone/anabada_rn/node_modules/expo-modules-core/android/src/main/java/expo/modules/interfaces/taskManager/TaskConsumer.java:39: error: cannot find symbol
  public void didReceiveBroadcast(Intent intent) {
                                  ^
  symbol:   class Intent
  location: class TaskConsumer
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
100 errors

> Task :expo-modules-core:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':expo-modules-core: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

해결

npx install-expo-modules

expo-modules가 잘 안깔렸던 것이었다.

profile
Why so serious?
post-custom-banner

0개의 댓글