react-native-dji-mobile icon indicating copy to clipboard operation
react-native-dji-mobile copied to clipboard

TypeError: null is not an object (evaluating 'DJIMobile.ProductConnection')

Open mcorner opened this issue 5 years ago • 1 comments

I am trying to update to the latest code in develop and the latest DJI SDK. I am plugging along, but I just ran into this error (on Android).

It isn't clear to me where the DJIMobile.ProductConnection string is being defined. I don't see it in the Android native module...

mcorner avatar Sep 08 '20 20:09 mcorner

Actually, DJIMobile was null. I believe it was null because there are two Package files in android and react-native config was picking the wrong one. I removed DJIMissionControlWrapperPackage.java and it seems like it is working. I think that file isn't necessary for anything anyway.

mcorner avatar Sep 09 '20 01:09 mcorner