Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference getDoublereact-native-maps first person viewjava.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a null object referenceReact-Native-Maps don't seem to rerender once the geo location is acquiredReact Native Maps onRegionChangeComplete Fails to Fire on Second DrawingAndroid- Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object referenceError on “Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference”Cannot get current position without GPS on react-native with navigator.geolocationExpo Native-Base Font AsyncMap Zoom level base off radius React Native mapsError: Cannot find module 'number-is-nan'

Why is this python script running in background consuming 100 % CPU?

List of lists elementwise greater/smaller than

Do 'destroy' effects count as damage?

Is there a word for pant sleeves?

How does the +1 Keen Composite Longbow (+2 Str) work?

How do we properly manage transitions within a descriptive section?

How can I prevent Bash expansion from passing files starting with "-" as argument?

Schwa-less Polysyllabic German Noun Stems of Germanic Origin

why "American-born", not "America-born"?

pwaS eht tirsf dna tasl setterl fo hace dorw

Is there a way to generate a mapping graph like this?

Does science define life as "beginning at conception"?

Does a windmilling propeller create more drag than a stopped propeller in an engine out scenario?

Bash - Execute two commands and get exit status 1 if first fails

How can sister protect herself from impulse purchases with a credit card?

How could Dwarves prevent sand from filling up their settlements

Is it wise to pay off mortgage with 401k?

Do seaplanes need to get clearance for takeoff?

Is my company merging branches wrong?

Mikrokosmos, BB 105, Vol. 1: No. 17 Contrary Motion (1) - Can't understand the structure

Germany rejected my entry to Schengen countries

Connecting circles clockwise in TikZ

How did Jean Parisot de Valette, 49th Grand Master of the Order of Malta, die?

How do you cope with rejection?



Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference getDouble


react-native-maps first person viewjava.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a null object referenceReact-Native-Maps don't seem to rerender once the geo location is acquiredReact Native Maps onRegionChangeComplete Fails to Fire on Second DrawingAndroid- Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object referenceError on “Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference”Cannot get current position without GPS on react-native with navigator.geolocationExpo Native-Base Font AsyncMap Zoom level base off radius React Native mapsError: Cannot find module 'number-is-nan'






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








3















I am using react-native-maps library to show google maps in react-native application.
I am tracking user movement and want to rotate the map when location will be changed. For map rotation I am calculating rotation angle and using
animateCamera trying to rotate the map like the following:



this.map.animateCamera(
heading: rotation,
center: latitude: currentLocation.latitude, longitude: currentLocation.longitude,
pitch: this.state.currentAngle
, duration: 1000);


I've checked and rotation, latitude, longitude, currentAngle are not null or empty objects



But this method throws an error like this: enter image description here



After this, I tried to use animateToBearing method, which is deprecated, as documentation says, but works nicely and rotates the map but shows the deperecation warning.



Versions:
expo: 32.0.0,
expo-cli: 2.2.0,
react-native-maps: 0.23.0


Any solutions?



P.S. I've searched similar questions on github.com and stackoverflow.com and this question is not duplicated










share|improve this question
























  • It’s probably due to your current location being null at some point.

    – Andrew
    Mar 23 at 19:33











  • no, I checked latitude and longitude values, they are initialized

    – Dato Maisuradze
    Mar 23 at 19:40











  • I had similar issue with Unity. I added ndk abiFilters 'armeabi-v7a' to app/build.gradle under defaultConfig properties. Try it. EDIT: I don't use Expo and I don't know how android code is executed with Expo.

    – Ziyo
    Mar 24 at 5:47


















3















I am using react-native-maps library to show google maps in react-native application.
I am tracking user movement and want to rotate the map when location will be changed. For map rotation I am calculating rotation angle and using
animateCamera trying to rotate the map like the following:



this.map.animateCamera(
heading: rotation,
center: latitude: currentLocation.latitude, longitude: currentLocation.longitude,
pitch: this.state.currentAngle
, duration: 1000);


I've checked and rotation, latitude, longitude, currentAngle are not null or empty objects



But this method throws an error like this: enter image description here



After this, I tried to use animateToBearing method, which is deprecated, as documentation says, but works nicely and rotates the map but shows the deperecation warning.



Versions:
expo: 32.0.0,
expo-cli: 2.2.0,
react-native-maps: 0.23.0


Any solutions?



P.S. I've searched similar questions on github.com and stackoverflow.com and this question is not duplicated










share|improve this question
























  • It’s probably due to your current location being null at some point.

    – Andrew
    Mar 23 at 19:33











  • no, I checked latitude and longitude values, they are initialized

    – Dato Maisuradze
    Mar 23 at 19:40











  • I had similar issue with Unity. I added ndk abiFilters 'armeabi-v7a' to app/build.gradle under defaultConfig properties. Try it. EDIT: I don't use Expo and I don't know how android code is executed with Expo.

    – Ziyo
    Mar 24 at 5:47














3












3








3








I am using react-native-maps library to show google maps in react-native application.
I am tracking user movement and want to rotate the map when location will be changed. For map rotation I am calculating rotation angle and using
animateCamera trying to rotate the map like the following:



this.map.animateCamera(
heading: rotation,
center: latitude: currentLocation.latitude, longitude: currentLocation.longitude,
pitch: this.state.currentAngle
, duration: 1000);


I've checked and rotation, latitude, longitude, currentAngle are not null or empty objects



But this method throws an error like this: enter image description here



After this, I tried to use animateToBearing method, which is deprecated, as documentation says, but works nicely and rotates the map but shows the deperecation warning.



Versions:
expo: 32.0.0,
expo-cli: 2.2.0,
react-native-maps: 0.23.0


Any solutions?



P.S. I've searched similar questions on github.com and stackoverflow.com and this question is not duplicated










share|improve this question
















I am using react-native-maps library to show google maps in react-native application.
I am tracking user movement and want to rotate the map when location will be changed. For map rotation I am calculating rotation angle and using
animateCamera trying to rotate the map like the following:



this.map.animateCamera(
heading: rotation,
center: latitude: currentLocation.latitude, longitude: currentLocation.longitude,
pitch: this.state.currentAngle
, duration: 1000);


I've checked and rotation, latitude, longitude, currentAngle are not null or empty objects



But this method throws an error like this: enter image description here



After this, I tried to use animateToBearing method, which is deprecated, as documentation says, but works nicely and rotates the map but shows the deperecation warning.



Versions:
expo: 32.0.0,
expo-cli: 2.2.0,
react-native-maps: 0.23.0


Any solutions?



P.S. I've searched similar questions on github.com and stackoverflow.com and this question is not duplicated







android google-maps react-native expo react-native-maps






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 23 at 19:28







Dato Maisuradze

















asked Mar 23 at 19:14









Dato MaisuradzeDato Maisuradze

414617




414617












  • It’s probably due to your current location being null at some point.

    – Andrew
    Mar 23 at 19:33











  • no, I checked latitude and longitude values, they are initialized

    – Dato Maisuradze
    Mar 23 at 19:40











  • I had similar issue with Unity. I added ndk abiFilters 'armeabi-v7a' to app/build.gradle under defaultConfig properties. Try it. EDIT: I don't use Expo and I don't know how android code is executed with Expo.

    – Ziyo
    Mar 24 at 5:47


















  • It’s probably due to your current location being null at some point.

    – Andrew
    Mar 23 at 19:33











  • no, I checked latitude and longitude values, they are initialized

    – Dato Maisuradze
    Mar 23 at 19:40











  • I had similar issue with Unity. I added ndk abiFilters 'armeabi-v7a' to app/build.gradle under defaultConfig properties. Try it. EDIT: I don't use Expo and I don't know how android code is executed with Expo.

    – Ziyo
    Mar 24 at 5:47

















It’s probably due to your current location being null at some point.

– Andrew
Mar 23 at 19:33





It’s probably due to your current location being null at some point.

– Andrew
Mar 23 at 19:33













no, I checked latitude and longitude values, they are initialized

– Dato Maisuradze
Mar 23 at 19:40





no, I checked latitude and longitude values, they are initialized

– Dato Maisuradze
Mar 23 at 19:40













I had similar issue with Unity. I added ndk abiFilters 'armeabi-v7a' to app/build.gradle under defaultConfig properties. Try it. EDIT: I don't use Expo and I don't know how android code is executed with Expo.

– Ziyo
Mar 24 at 5:47






I had similar issue with Unity. I added ndk abiFilters 'armeabi-v7a' to app/build.gradle under defaultConfig properties. Try it. EDIT: I don't use Expo and I don't know how android code is executed with Expo.

– Ziyo
Mar 24 at 5:47













0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55317448%2fattempt-to-invoke-virtual-method-double-java-lang-double-doublevalue-on-a-nu%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55317448%2fattempt-to-invoke-virtual-method-double-java-lang-double-doublevalue-on-a-nu%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript