Skip to content

Cannot find symbol cannot find symbol: method toArrayList() #231

@fdobre

Description

@fdobre

React-native 0.50.4, react-native-admob 2.0.0-beta.3,

When trying to build with react-native run-android:

I get 5 errors likes this (for each file in /rnadmob):
/node_modules/react-native-admob/android/src/main/java/com/sbugert/rnadmob/RNAdMobInterstitialAdModule.java:117: error: cannot find symbol ArrayList<Object> list = nativeArray.toArrayList(); ^ symbol: method toArrayList() location: variable nativeArray of type ReadableNativeArray

This happened after an update from 1.3.2 to react-native-admob 2.0.0-beta.3 and an update of react-native from 0.45 to 0.50.
Am I doing something wrong?

I ran react-native link, cleaned cache etc.

Please advise.

Any advice or suggestion will be greatly appreciated.
I added a question on stackoverflow too:
https://stackoverflow.com/questions/47887443/android-react-native-admob-error-cannot-find-symbol-toarraylist

IOS building works ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions