0
trigger.io 앱에서 Flurry Analytics를 구현하려고합니다. 안드로이드 장치의 example for setLocation을 실행할 때 :forge.flurry.setLocation을 사용할 때 NumberFormatException이 발생합니다.
forge.geolocation.getCurrentPosition(function (position) {
forge.flurry.setLocation(position.coords);
});
내가받을 다음과 같은 오류 :
내가 position.coords의 위도와 경도를 반올림하여이 문제를 해결하려면 얻을 수있을 것Error while executing API method: flurry.setLocation
message: "Forge Java error: NumberFormatException: Invalid BigInteger: 45.5150396"
type: "UNEXPECTED_FAILURE"
full_error:
java.lang.NumberFormatException: Invalid BigInteger: 45.5150396
at java.math.BigInt.invalidBigInteger(BigInt.java:124)
at java.math.BigInt.checkString(BigInt.java:180)
at java.math.BigInt.putDecString(BigInt.java:128)
at java.math.BigInteger.<init>(BigInteger.java:183)
at com.google.gson.internal.LazilyParsedNumber.longValue(LazilyParsedNumber.java:51)
at com.google.gson.JsonPrimitive.getAsLong(JsonPrimitive.java:233)
at io.trigger.forge.android.modules.flurry.API.setLocation(API.java:65)
at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511)
at io.trigger.forge.android.core.ForgeApp.callJavaFromJavaScript(ForgeApp.java:315)
at io.trigger.forge.android.core.ForgeJSBridge$1.run(ForgeJSBridge.java:25)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
, 그러나 나는 약간의 정확성을 희생 할 것이다.
여기 뭔가 잘못 되었나요? 아니면 향후 릴리스에서 수정 될 수있는 버그입니까?
버전 1.4.48에서 수정 됨 – ScottieMc