cjam / cjam/react-native-spotify-remote

Android Build Error: incompatible types: ReadableMap cannot be converted to WritableMap

Open
#71 11 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Objective-C
Stars
283
Forks
110
PR merge metrics
No merged PRs in 30d

Description

Building Android fails with errors
```
warning: unknown enum constant Include.NON_NULL
reason: class file for com.fasterxml.jackson.annotation.JsonInclude$Include not found
/node_modules/react-native-spotify-remote/android/src/main/java/com/reactlibrary/Convert.java:42: error: incompatible types: ReadableMap cannot be converted to WritableMap
array.pushMap(Convert.toMap(item));
^
/node_modules/react-native-spotify-remote/android/src/main/java/com/reactlibrary/Convert.java:105: error: incompatible types: ReadableMap cannot be converted to WritableMap
map.putMap("artist", Convert.toMap(track.artist));
^
/node_modules/react-native-spotify-remote/android/src/main/java/com/reactlibrary/Convert.java:106: error: incompatible types: ReadableMap cannot be converted to WritableMap
map.putMap("album", Convert.toMap(track.album));
^
/node_modules/react-native-spotify-remote/android/src/main/java/com/reactlibrary/Convert.java:138: error: incompatible types: ReadableMap cannot be converted to WritableMap
map.putMap("playbackOptions", Convert.toMap(playerState.playbackOptions));
^
/node_modules/react-native-spotify-remote/android/src/main/java/com/reactlibrary/Convert.java:139: error: incompatible types: ReadableMap cannot be converted to WritableMap
map.putMap("playbackRestrictions", Convert.toMap(playerState.playbackRestrictions));
^
/node_modules/react-native-spotify-remote/android/src/main/java/com/reactlibrary/Convert.java:140: error: incompatible types: ReadableMap cannot be converted to WritableMap
map.putMap("track", Convert.toMap(playerState.track));
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.