Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: incompatible types #4128

Closed
mobilekosmos opened this issue Nov 3, 2023 · 3 comments
Closed

error: incompatible types #4128

mobilekosmos opened this issue Nov 3, 2023 · 3 comments

Comments

@mobilekosmos
Copy link

mobilekosmos commented Nov 3, 2023

Hello all, just migrating my Android app to ksp and having following issue, any idea how to solve this?

BleWriteDialog_Factory.java:73: error: incompatible types: Single<List<Pair<Device,List<Pair<Sensor,byte[]>>>>> cannot be converted to Single<List<Pair<Device,List<Pair<Sensor,UByteArray>>>>>
    return new BleWriteDialog(ctx, writeCommands, writeStateLoading, writeStateSuccess, writeStateError, onDialogPositiveClick, onDialogNegativeClick, multipleDispensers, manager, scannerRepo, catalogRepo);
class BleWriteDialog @AssistedInject constructor(
    @Assisted("ctx") private val ctx: Context,
    @Assisted("writeCommands") writeCommands: Single<List<Pair<Device, List<Pair<Sensor, UByteArray>>>>>,
public static BleWriteDialog newInstance(Context ctx,
      Single<List<Pair<Device, List<Pair<Sensor, byte[]>>>>> writeCommands,
      Function0<BleDialog.DialogState> writeStateLoading,
      Function0<BleDialog.DialogState> writeStateSuccess,
      Function1<? super Integer, BleDialog.DialogState> writeStateError,
      Function1<? super BleDialog.DialogState, Unit> onDialogPositiveClick,
      Function1<? super BleDialog.DialogState, Unit> onDialogNegativeClick,
      boolean multipleDispensers, BleConnectionManager manager, ScannerRepo scannerRepo,
      CatalogRepo catalogRepo) {
    return new BleWriteDialog(ctx, writeCommands, writeStateLoading, writeStateSuccess, writeStateError, onDialogPositiveClick, onDialogNegativeClick, multipleDispensers, manager, scannerRepo, catalogRepo);
  }
@bcorso
Copy link

bcorso commented Nov 3, 2023

This looks like the same issue as #4096.

It should be fixed at head. You can try it out using the HEAD-SNAPSHOT artifacts.

@bcorso bcorso closed this as completed Nov 3, 2023
@mobilekosmos
Copy link
Author

I tried Head but I'm getting many:

[ksp] [Hilt] No property named assistedFactory was found in annotation HiltViewModel: java.lang.IllegalStateException: No property named assistedFactory was found in annotation HiltViewModel

@bcorso
Copy link

bcorso commented Nov 3, 2023

That sounds like version skew -- i.e. something is not using the HEAD-SNAPSHOT. See #3401 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants