listen1 / listen1_mobile

one for all free music in china (iOS, Android)
https://listen1.github.io/listen1
MIT License
2.82k stars 505 forks source link

项目似乎已无法顺利构建 #161

Open WhiredPlanck opened 1 year ago

WhiredPlanck commented 1 year ago

不好意思,这是我第一次接触有前端技术参与的移动应用项目(主要是 Android)。

我配置好开发环境后,按照 README 里的指引装好依赖并链接好库后,运行 yarn start:android 后就有很多报错(我看 Actions 里最近两次的提交也是构建失败的),但我对前端不熟悉,对此一头雾水。报错贴在这里,期望能帮助解决:

Task :@react-native-community_async-storage:preBuild UP-TO-DATE > Task :@react-native-community_async-storage:preDebugBuild UP-TO-DATE > Task :@react-native-community_async-storage:compileDebugAidl NO-SOURCE > Task :@react-native-community_async-storage:compileDebugRenderscript NO-SOURCE > Task :@react-native-community_async-storage:checkDebugManifest > Task :@react-native-community_async-storage:generateDebugBuildConfig > Task :@react-native-community_async-storage:generateDebugResValues > Task :@react-native-community_async-storage:generateDebugResources > Task :@react-native-community_async-storage:packageDebugResources > Task :@react-native-community_async-storage:processDebugManifest > Task :@react-native-community_async-storage:generateDebugRFile > Task :@react-native-community_async-storage:prepareLintJar UP-TO-DATE > Task :@react-native-community_async-storage:generateDebugSources > Task :@react-native-community_async-storage:javaPreCompileDebug > Task :@react-native-community_async-storage:compileDebugJavaWithJavac FAILED /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncLocalStorageUtil.java:10: 错误: 程序包javax.annotation不存在import javax.annotation.Nullable; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncLocalStorageUtil.java:20: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.ReadableArray; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/ReactDatabaseSupplier.java:14: 错误: 程序包com.facebook.common.logging不存在import com.facebook.common.logging.FLog; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/ReactDatabaseSupplier.java:15: 错误: 程序包com.facebook.react.common不存在import com.facebook.react.common.ReactConstants; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/ReactDatabaseSupplier.java:16: 错误: 程序包javax.annotation不存在import javax.annotation.Nullable; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncLocalStorageUtil.java:50: 错误: 找不到符号 /* package */ static String[] buildKeySelectionArgs(ReadableArray keys, int start, int count) { ^ 符号: 类 ReadableArray 位置: 类 AsyncLocalStorageUtil /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.java:10: 错误: 程序包javax.annotation不存在import javax.annotation.Nullable; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.java:12: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.Arguments; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.java:13: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.WritableMap; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.java:23: 错误: 找不到符号 /* package */ static WritableMap getError(@Nullable String key, String errorMessage) { ^ 符号: 类 WritableMap 位置: 类 AsyncStorageErrorUtil /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.java:32: 错误: 找不到符号 /* package */ static WritableMap getInvalidKeyError(@Nullable String key) { ^ 符号: 类 WritableMap 位置: 类 AsyncStorageErrorUtil /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.java:36: 错误: 找不到符号 /* package */ static WritableMap getInvalidValueError(@Nullable String key) { ^ 符号: 类 WritableMap 位置: 类 AsyncStorageErrorUtil /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.java:40: 错误: 找不到符号 /* package */ static WritableMap getDBError(@Nullable String key) { ^ 符号: 类 WritableMap 位置: 类 AsyncStorageErrorUtil /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:14: 错误: 程序包com.facebook.common.logging不存在import com.facebook.common.logging.FLog; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:15: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.Arguments; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:16: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.Callback; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:17: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.GuardedAsyncTask; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:18: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.LifecycleEventListener; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:19: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.ReactApplicationContext; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:20: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.ReactContextBaseJavaModule; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:21: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.ReactMethod; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:22: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.ReadableArray; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:23: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.WritableArray; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:24: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.WritableMap; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:25: 错误: 程序包com.facebook.react.common不存在import com.facebook.react.common.ReactConstants; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:26: 错误: 程序包com.facebook.react.common.annotations不存在import com.facebook.react.common.annotations.VisibleForTesting; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:27: 错误: 程序包com.facebook.react.module.annotations不存在import com.facebook.react.module.annotations.ReactModule; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:28: 错误: 程序包com.facebook.react.modules.common不存在import com.facebook.react.modules.common.ModuleDataCleaner; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:37: 错误: 找不到符号 extends ReactContextBaseJavaModule implements ModuleDataCleaner.Cleanable, LifecycleEventListener { ^ 符号: 类 ReactContextBaseJavaModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:37: 错误: 程序包ModuleDataCleaner不存在 extends ReactContextBaseJavaModule implements ModuleDataCleaner.Cleanable, LifecycleEventListener { ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:37: 错误: 找不到符号 extends ReactContextBaseJavaModule implements ModuleDataCleaner.Cleanable, LifecycleEventListener { ^ 符号: 类 LifecycleEventListener /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:35: 错误: 找不到符号@ReactModule(name = AsyncStorageModule.NAME) ^ 符号: 类 ReactModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:82: 错误: 找不到符号 public AsyncStorageModule(ReactApplicationContext reactContext) { ^ 符号: 类 ReactApplicationContext 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:92: 错误: 找不到符号 AsyncStorageModule(ReactApplicationContext reactContext, Executor executor) { ^ 符号: 类 ReactApplicationContext 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:140: 错误: 找不到符号 public void multiGet(final ReadableArray keys, final Callback callback) { ^ 符号: 类 ReadableArray 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:140: 错误: 找不到符号 public void multiGet(final ReadableArray keys, final Callback callback) { ^ 符号: 类 Callback 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:213: 错误: 找不到符号 public void multiSet(final ReadableArray keyValueArray, final Callback callback) { ^ 符号: 类 ReadableArray 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:213: 错误: 找不到符号 public void multiSet(final ReadableArray keyValueArray, final Callback callback) { ^ 符号: 类 Callback 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:278: 错误: 找不到符号 public void multiRemove(final ReadableArray keys, final Callback callback) { ^ 符号: 类 ReadableArray 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:278: 错误: 找不到符号 public void multiRemove(final ReadableArray keys, final Callback callback) { ^ 符号: 类 Callback 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:330: 错误: 找不到符号 public void multiMerge(final ReadableArray keyValueArray, final Callback callback) { ^ 符号: 类 ReadableArray 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:330: 错误: 找不到符号 public void multiMerge(final ReadableArray keyValueArray, final Callback callback) { ^ 符号: 类 Callback 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:392: 错误: 找不到符号 public void clear(final Callback callback) { ^ 符号: 类 Callback 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:415: 错误: 找不到符号 public void getAllKeys(final Callback callback) { ^ 符号: 类 Callback 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java:10: 错误: 程序包com.facebook.react不存在import com.facebook.react.ReactPackage; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java:11: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.JavaScriptModule; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java:12: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.NativeModule; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java:13: 错误: 程序包com.facebook.react.bridge不存在import com.facebook.react.bridge.ReactApplicationContext; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java:14: 错误: 程序包com.facebook.react.uimanager不存在import com.facebook.react.uimanager.ViewManager; ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java:20: 错误: 找不到符号public class AsyncStoragePackage implements ReactPackage { ^ 符号: 类 ReactPackage /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java:22: 错误: 找不到符号 public List createNativeModules(ReactApplicationContext reactContext) { ^ 符号: 类 ReactApplicationContext 位置: 类 AsyncStoragePackage /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java:22: 错误: 找不到符号 public List createNativeModules(ReactApplicationContext reactContext) { ^ 符号: 类 NativeModule 位置: 类 AsyncStoragePackage /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java:27: 错误: 找不到符号 public List> createJSModules() { ^ 符号: 类 JavaScriptModule 位置: 类 AsyncStoragePackage /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java:33: 错误: 找不到符号 public List createViewManagers(ReactApplicationContext reactContext) { ^ 符号: 类 ReactApplicationContext 位置: 类 AsyncStoragePackage /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java:33: 错误: 找不到符号 public List createViewManagers(ReactApplicationContext reactContext) { ^ 符号: 类 ViewManager 位置: 类 AsyncStoragePackage /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncLocalStorageUtil.java:61: 错误: 找不到符号 public static @Nullable String getItemImpl(SQLiteDatabase db, String key) { ^ 符号: 类 Nullable 位置: 类 AsyncLocalStorageUtil /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/ReactDatabaseSupplier.java:40: 错误: 找不到符号 private static @Nullable ReactDatabaseSupplier sReactDatabaseSupplierInstance; ^ 符号: 类 Nullable 位置: 类 ReactDatabaseSupplier /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/ReactDatabaseSupplier.java:43: 错误: 找不到符号 private @Nullable SQLiteDatabase mDb; ^ 符号: 类 Nullable 位置: 类 ReactDatabaseSupplier /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.java:23: 错误: 找不到符号 /* package */ static WritableMap getError(@Nullable String key, String errorMessage) { ^ 符号: 类 Nullable 位置: 类 AsyncStorageErrorUtil /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.java:32: 错误: 找不到符号 /* package */ static WritableMap getInvalidKeyError(@Nullable String key) { ^ 符号: 类 Nullable 位置: 类 AsyncStorageErrorUtil /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.java:36: 错误: 找不到符号 /* package */ static WritableMap getInvalidValueError(@Nullable String key) { ^ 符号: 类 Nullable 位置: 类 AsyncStorageErrorUtil /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.java:40: 错误: 找不到符号 /* package */ static WritableMap getDBError(@Nullable String key) { ^ 符号: 类 Nullable 位置: 类 AsyncStorageErrorUtil /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:91: 错误: 找不到符号 @VisibleForTesting ^ 符号: 类 VisibleForTesting 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:139: 错误: 找不到符号 @ReactMethod ^ 符号: 类 ReactMethod 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:212: 错误: 找不到符号 @ReactMethod ^ 符号: 类 ReactMethod 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:277: 错误: 找不到符号 @ReactMethod ^ 符号: 类 ReactMethod 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:329: 错误: 找不到符号 @ReactMethod ^ 符号: 类 ReactMethod 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:391: 错误: 找不到符号 @ReactMethod ^ 符号: 类 ReactMethod 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:414: 错误: 找不到符号 @ReactMethod ^ 符号: 类 ReactMethod 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/ReactDatabaseSupplier.java:120: 错误: 找不到符号 FLog.d(ReactConstants.TAG, "Cleaned " + DATABASE_NAME); ^ 符号: 变量 ReactConstants 位置: 类 ReactDatabaseSupplier /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/ReactDatabaseSupplier.java:120: 错误: 找不到符号 FLog.d(ReactConstants.TAG, "Cleaned " + DATABASE_NAME); ^ 符号: 变量 FLog 位置: 类 ReactDatabaseSupplier /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/ReactDatabaseSupplier.java:124: 错误: 找不到符号 FLog.d(ReactConstants.TAG, "Deleted Local Database " + DATABASE_NAME); ^ 符号: 变量 ReactConstants 位置: 类 ReactDatabaseSupplier /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/ReactDatabaseSupplier.java:124: 错误: 找不到符号 FLog.d(ReactConstants.TAG, "Deleted Local Database " + DATABASE_NAME); ^ 符号: 变量 FLog 位置: 类 ReactDatabaseSupplier /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.java:24: 错误: 找不到符号 WritableMap errorMap = Arguments.createMap(); ^ 符号: 类 WritableMap 位置: 类 AsyncStorageErrorUtil /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageErrorUtil.java:24: 错误: 找不到符号 WritableMap errorMap = Arguments.createMap(); ^ 符号: 变量 Arguments 位置: 类 AsyncStorageErrorUtil /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:99: 错误: 方法不会覆盖或实现超类型的方法 @Override ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:104: 错误: 方法不会覆盖或实现超类型的方法 @Override ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:106: 错误: 找不到符号 super.initialize(); ^ 符号: 变量 super 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:110: 错误: 方法不会覆盖或实现超类型的方法 @Override ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:115: 错误: 方法不会覆盖或实现超类型的方法 @Override ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:123: 错误: 方法不会覆盖或实现超类型的方法 @Override ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:126: 错误: 方法不会覆盖或实现超类型的方法 @Override ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:129: 错误: 方法不会覆盖或实现超类型的方法 @Override ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:146: 错误: 找不到符号 new GuardedAsyncTask(getReactApplicationContext()) { ^ 符号: 类 GuardedAsyncTask 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:146: 错误: 找不到符号 new GuardedAsyncTask(getReactApplicationContext()) { ^ 符号: 方法 getReactApplicationContext() 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:147: 错误: 方法不会覆盖或实现超类型的方法 @Override ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:156: 错误: 找不到符号 WritableArray data = Arguments.createArray(); ^ 符号: 类 WritableArray /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:156: 错误: 找不到符号 WritableArray data = Arguments.createArray(); ^ 符号: 变量 Arguments /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:178: 错误: 找不到符号 WritableArray row = Arguments.createArray(); ^ 符号: 类 WritableArray /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:178: 错误: 找不到符号 WritableArray row = Arguments.createArray(); ^ 符号: 变量 Arguments /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:186: 错误: 找不到符号 FLog.w(ReactConstants.TAG, e.getMessage(), e); ^ 符号: 变量 ReactConstants /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:186: 错误: 找不到符号 FLog.w(ReactConstants.TAG, e.getMessage(), e); ^ 符号: 变量 FLog /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:194: 错误: 找不到符号 WritableArray row = Arguments.createArray(); ^ 符号: 类 WritableArray /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:194: 错误: 找不到符号 WritableArray row = Arguments.createArray(); ^ 符号: 变量 Arguments /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:219: 错误: 找不到符号 new GuardedAsyncTask(getReactApplicationContext()) { ^ 符号: 类 GuardedAsyncTask 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:219: 错误: 找不到符号 new GuardedAsyncTask(getReactApplicationContext()) { ^ 符号: 方法 getReactApplicationContext() 位置: 类 AsyncStorageModule /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:220: 错误: 方法不会覆盖或实现超类型的方法 @Override ^ /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:229: 错误: 找不到符号 WritableMap error = null; ^ 符号: 类 WritableMap /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:253: 错误: 找不到符号 FLog.w(ReactConstants.TAG, e.getMessage(), e); ^ 符号: 变量 ReactConstants /home/panda/Projects/Android/listen1_mobile/node_modules/@react-native-community/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java:253: 错误: 找不到符号 FLog.w(ReactConstants.TAG, e.getMessage(), e); ^ 符号: 变量 FLog 100 个错误 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':@react-native-community_async-storage: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 Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 1s 9 actionable tasks: 8 executed, 1 up-to-date

我的想法是想升级改造下这个项目,因为我在使用时觉得有很多小不足,比如不支持自动切换暗色模式啦、来电或者看 B 站视频时不会自己暂停啦(其他音乐应用有这样的特性)、还有一些地方的操作逻辑不太符合逻辑啦 …… 考虑到可能作者精力有限可能没时间管移动端,所以决定自己动手。

WhiredPlanck commented 1 year ago

刚刚又查了一下,好像是由这个问题引起的:https://github.com/facebook/react-native/issues/35210

mnyon commented 1 year ago

我也遇到了同样的问题,在yarn start:android之后就会遇到@react-native-community_asy的问题.

yarn start:android
yarn run v1.22.17
$ concurrently -r "react-native start" "yarn start:android:no-packager"
$ react-native run-android --no-packager
info Building and installing the app on the device (cd android && gradlew.bat app:installDebug)...
error Invalid regular expression: /(.*\\__fixtures__\\.*|node_modules[\\\]react[\\\]dist[\\\].*|website\\node_modules\\.*|heapCapture\\bundle\.js|.*\\__tests__\\.*)$/: Unterminated character class. Run CLI with --verbose flag for more details.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':@react-native-community_async-storage'.
> SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at 'C:\SandBox\listen1_mobile_wyatt\android\local.properties'.
mnyon commented 1 year ago

刚刚又查了一下,好像是由这个问题引起的:[facebook/react-native#35210](https://github.com/facebook/react-native/issues/35210)

build.gradle已经添加了这个issue给出的修复办法了,但是我还是会遇到这个问题.

mnyon commented 1 year ago

160 可能和这个问题有关系😢

mnyon commented 1 year ago

这是我的系统环境

java -version
java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)

node -v
v14.16.0
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':@react-native-async-storage_async-storage: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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s
9 actionable tasks: 1 executed, 8 up-to-date
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have   
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
error Command failed: gradlew.bat app:installDebug. Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
mnyon commented 1 year ago

@WhiredPlanck Hi,我已经成功编译出来产物了.我给你说一下我的环境版本配置.在AndroidStudio中Project Structure选项检查.

Android Gradle plugin version 3.4.0
Gradle Version 5.4.1

但是我的JDK环境版本很低,只有1.8.所以我手动指定了JDK版本,android/gradle.properties文件中添加这个部分.这个路径是默认AndroidStudio自带的JDK 11 版本.

org.gradle.java.home = C:\\Program Files\\Android\\Android Studio\\jre
mnyon commented 1 year ago

这里还有一个readme中提到的构建过程中的问题.

Nodejs 8 (版本>12.10.0 可能遇到 metro 一个关于正则表达式的 bug 导致的启动失败)

错误过程:

    这个错误在yarn之后yarn start:android安装app时会提示Could not connect to development server并且Console中会提示.

/(.*\\__fixtures__\\.*|node_modules[\\\]react[\\\]dist[\\\].*|website\\node_modules\\.*|heapCapture\\bundle\.js|.*\\__tests__\\.*)$/: Unterminated character class. Run CLI with --verbose flag for more details.

    这个错误的[解决办法](https://blog.csdn.net/weixin_44369568/article/details/102917156).

WhiredPlanck commented 1 year ago

@mnyon 你说的第二个问题我没有遇到,但感谢你的反馈 ~