react-native-async-storage / async-storage

An asynchronous, persistent, key-value storage system for React Native.
https://react-native-async-storage.github.io/async-storage/
MIT License
4.76k stars 466 forks source link

StorageModule.kt: (14, 78): No value passed for parameter 'p0' #616

Closed DragonSpirit closed 3 years ago

DragonSpirit commented 3 years ago

Current behavior

Hello! When I tried to use next storage I encountered the error described above.

Expected behavior

Compiling should go properly.

Repro steps

Just use setup steps from docs

Environment

krizzu commented 3 years ago

Hey,

Could you provide some more information, like the whole error message pointing to the line? What version of Kotlin are you using?

github-actions[bot] commented 3 years ago

This issue has been marked as stale due to inactivity. Please respond or otherwise resolve the issue within 7 days or it will be closed.

rafirr commented 3 years ago

@Krizzu, I've the same error:

Task :@react-native-async-storage:kaptDebugKotlin {app-path}node_modules\@react-native-async-storage\async-storage\android\build\tmp\kapt3\stubs\debug\com\reactnativecommunity\asyncstorage\next\StorageDb.java:7: warning: Schema export directory is not provided to the annotation processor so we cannot export the schema. You can either provide room.schemaLocation annotation processor argument OR set exportSchema to false.

public abstract class StorageDb extends androidx.room.RoomDatabase { ^[WARN] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: androidx.room.RoomProcessor (DYNAMIC)

Task :@react-native-async-storage:compileDebugKotlin FAILED w: Argfile not found: {user-path}\AppData\Local\kotlin\daemon\react-native-async-storage_debug e: {app-path}node_modules\@react-native-async-storage\async-storage\android\src\main\java\com\reactnativecommunity\asyncstorage\next\StorageModule.kt: (19, 78): No value passed for parameter 'p0'

kotlinVersion: 1.4.21 react-native-async-storage: 1.15.5

krizzu commented 3 years ago

@rafirr Hey,

Is it happening on a fresh project? Can you clean build dir (go to android directory and run ./gradlew clean) and retry again?

rafirr commented 3 years ago

@Krizzu, no it's old project, that currently working with react-native-async-storage, but not with the next version. I've run ./gradlew clean but it didn't help, same error after react-native run-android:

Task :@react-native-async-storage:compileDebugKotlin FAILED w: Argfile not found: {user-path}\AppData\Local\kotlin\daemon\react-native-async-storage_debug e: {app-path}node_modules\@react-native-async-storage\async-storage\android\src\main\java\com\reactnativecommunity\asyncstorage\next\StorageModule.kt: (19, 78): No value passed for parameter 'p0'

github-actions[bot] commented 3 years ago

This issue has been marked as stale due to inactivity. Please respond or otherwise resolve the issue within 7 days or it will be closed.