souvik-ghosh / react-native-create-thumbnail

iOS/Android thumbnail generator with support for both local and remote videos
MIT License
252 stars 105 forks source link

tough compilation error #83

Closed hengbenkeji closed 11 months ago

hengbenkeji commented 1 year ago

I keep having the following notorious 34 errors no matter what I do. I have tried the latest 10 versions and got the same results. And these errors have been reported overtimes and have never receive attention. I have tried all the recommendations and these errors still persist!

Task :react-native-create-thumbnail:androidJavadoc /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:12: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.Arguments; ^ /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:13: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.GuardedResultAsyncTask; ^ /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:14: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.Promise; ^ /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:15: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.ReactApplicationContext; ^ /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:16: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.ReactContext; ^ /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:17: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.ReactContextBaseJavaModule; ^ /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:18: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.ReactMethod; ^ /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:19: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.ReadableMap; ^ /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:20: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.WritableMap; ^ /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:36: error: cannot find symbol public class CreateThumbnailModule extends ReactContextBaseJavaModule { ^ symbol: class ReactContextBaseJavaModule /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:38: error: cannot find symbol private final ReactApplicationContext reactContext; ^ symbol: class ReactApplicationContext location: class CreateThumbnailModule /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:40: error: cannot find symbol public CreateThumbnailModule(ReactApplicationContext reactContext) { ^ symbol: class ReactApplicationContext location: class CreateThumbnailModule /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:51: error: cannot find symbol public void create(ReadableMap options, Promise promise) { ^ symbol: class ReadableMap location: class CreateThumbnailModule /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:51: error: cannot find symbol public void create(ReadableMap options, Promise promise) { ^ symbol: class Promise location: class CreateThumbnailModule /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:55: error: cannot find symbol private static class ProcessDataTask extends GuardedResultAsyncTask { ^ symbol: class GuardedResultAsyncTask location: class CreateThumbnailModule /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:55: error: cannot find symbol private static class ProcessDataTask extends GuardedResultAsyncTask { ^ symbol: class ReadableMap location: class CreateThumbnailModule /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:57: error: cannot find symbol private final Promise promise; ^ symbol: class Promise location: class ProcessDataTask /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:58: error: cannot find symbol private final ReadableMap options; ^ symbol: class ReadableMap location: class ProcessDataTask /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:60: error: cannot find symbol protected ProcessDataTask(ReactContext reactContext, Promise promise, ReadableMap options) { ^ symbol: class ReactContext location: class ProcessDataTask /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:60: error: cannot find symbol protected ProcessDataTask(ReactContext reactContext, Promise promise, ReadableMap options) { ^ symbol: class Promise location: class ProcessDataTask /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:60: error: cannot find symbol protected ProcessDataTask(ReactContext reactContext, Promise promise, ReadableMap options) { ^ symbol: class ReadableMap location: class ProcessDataTask /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:68: error: cannot find symbol protected ReadableMap doInBackgroundGuarded() { ^ symbol: class ReadableMap location: class ProcessDataTask /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:132: error: cannot find symbol protected void onPostExecuteGuarded(ReadableMap readableArray) { ^ symbol: class ReadableMap location: class ProcessDataTask /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailPackage.java:7: error: package com.facebook.react does not exist import com.facebook.react.ReactPackage; ^ /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailPackage.java:8: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.NativeModule; ^ /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailPackage.java:9: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.ReactApplicationContext; ^ /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailPackage.java:10: error: package com.facebook.react.uimanager does not exist import com.facebook.react.uimanager.ViewManager; ^ /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailPackage.java:11: error: package com.facebook.react.bridge does not exist import com.facebook.react.bridge.JavaScriptModule; ^ /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailPackage.java:13: error: cannot find symbol public class CreateThumbnailPackage implements ReactPackage { ^ symbol: class ReactPackage /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailPackage.java:15: error: cannot find symbol public List createNativeModules(ReactApplicationContext reactContext) { ^ symbol: class ReactApplicationContext location: class CreateThumbnailPackage /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailPackage.java:15: error: cannot find symbol public List createNativeModules(ReactApplicationContext reactContext) { ^ symbol: class NativeModule location: class CreateThumbnailPackage /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailPackage.java:20: error: cannot find symbol public List createViewManagers(ReactApplicationContext reactContext) { ^ symbol: class ReactApplicationContext location: class CreateThumbnailPackage /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailPackage.java:20: error: cannot find symbol public List createViewManagers(ReactApplicationContext reactContext) { ^ symbol: class ViewManager location: class CreateThumbnailPackage /Users/username/projects/react-native-melcotoday-app-client/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:50: error: cannot find symbol @ReactMethod ^ symbol: class ReactMethod location: class CreateThumbnailModule 34 errors

Task :react-native-create-thumbnail:androidJavadoc FAILED

Caliman-Nicolae commented 1 year ago

Have you found any solution on that? @hengbenkeji I don't think it's related to package, but anyway, asking mby someone finds the solution

skoob13 commented 1 year ago

As a temporary solution, you can omit --deviceId or --list-devices in the React Native's run-android cli command.

xgenem commented 1 year ago

Experiencing the same problem

souvik-ghosh commented 11 months ago

closing due to inactivity