Skip to content

Conversation

@AzeemIdrisi
Copy link

Update RNScratchCard.kt to fix the error:

> Task :rn-scratch-card:compileDebugKotlin FAILED
e: file:///Users/user/Developer/project-name/node_modules/rn-scratch-card/android/src/main/java/com/rnscratchcard/RNScratchCard.kt:71:45 Argument type mismatch: actual type is 'android.graphics.Bitmap.Config?', but 'android.graphics.Bitmap.Config' was expected.


=FAILURE: Build failed with an exception.

Update RNScratchCard.kt to fix the error:

```
> Task :rn-scratch-card:compileDebugKotlin FAILED
e: file:///Users/user/Developer/project-name/node_modules/rn-scratch-card/android/src/main/java/com/rnscratchcard/RNScratchCard.kt:71:45 Argument type mismatch: actual type is 'android.graphics.Bitmap.Config?', but 'android.graphics.Bitmap.Config' was expected.


=FAILURE: Build failed with an exception.
```
@alihamza1729
Copy link

Update RNScratchCard.kt to fix the error:

> Task :rn-scratch-card:compileDebugKotlin FAILED
e: file:///Users/user/Developer/project-name/node_modules/rn-scratch-card/android/src/main/java/com/rnscratchcard/RNScratchCard.kt:71:45 Argument type mismatch: actual type is 'android.graphics.Bitmap.Config?', but 'android.graphics.Bitmap.Config' was expected.


=FAILURE: Build failed with an exception.

getting same error have you found any solution ?

@AzeemIdrisi
Copy link
Author

Update RNScratchCard.kt to fix the error:

> Task :rn-scratch-card:compileDebugKotlin FAILED
e: file:///Users/user/Developer/project-name/node_modules/rn-scratch-card/android/src/main/java/com/rnscratchcard/RNScratchCard.kt:71:45 Argument type mismatch: actual type is 'android.graphics.Bitmap.Config?', but 'android.graphics.Bitmap.Config' was expected.


=FAILURE: Build failed with an exception.

getting same error have you found any solution ?

Yes I found the solution and raised this PR so that it gets fixed in the main repo.
You can see my proposed changes to fix yours by editing it.

@Kbmdx
Copy link

Kbmdx commented Dec 23, 2025

Any idea when this will be merged? @AzeemIdrisi

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

Successfully merging this pull request may close these issues.

4 participants