posadskiy / currency-converter Goto Github PK
View Code? Open in Web Editor NEWCurrency converter library for Java applications
License: MIT License
Currency converter library for Java applications
License: MIT License
Service CurrencyConverterApi.Com has problem now. Exchange rate update failed. from CLP to SGD last successful update = 01 Jan 1970 00:00:00:000 +0000
It would be really nice if it is possible to also access historical exchange rates.
Caused by: com.posadskiy.currencyconverter.exception.CurrencyConverterException: Nothing working services. Please, try later again. If problem stay, create a ticket on github.com/posadskiy/currency-converter
I get this error when try to use converter.rate() functions.
val converter = CurrencyConverter(
ConfigBuilder()
.openExchangeRatesApiKey(CURRENCY_CONVERTER_API_API_KEY)
.build()
)
val _rate: Double = converter.rate(Currency.USD, Currency.TRY)
Log.i(TAG, "Rate is: ${_rate}")
I couldn't understand what about this error. Is library working still?
am trying to use com.posadskiy.currencyconverter.service.CurrencyConvertService in android studio but am getting these error in logcat and the app is crushing.
i need a help please.
01-20 04:41:34.341 1563-1563/com.example.callister.callistroninventory D/OpenGLRenderer: Enabling debug mode 0
01-20 04:41:34.453 1563-1563/com.example.callister.callistroninventory E/EGL_emulation: tid 1563: eglSurfaceAttrib(1210): error 0x3009 (EGL_BAD_MATCH)
01-20 04:41:34.453 1563-1563/com.example.callister.callistroninventory W/HardwareRenderer: Backbuffer cannot be preserved
01-20 04:41:50.349 1563-1563/com.example.callister.callistroninventory W/InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
01-20 04:41:51.741 1563-1563/com.example.callister.callistroninventory I/dalvikvm: Could not find method java.io.BufferedReader.lines, referenced from method com.posadskiy.currencyconverter.service.CurrencyConvertService.getBufferReaderByUrl
01-20 04:41:51.745 1563-1563/com.example.callister.callistroninventory W/dalvikvm: VFY: unable to resolve virtual method 24929: Ljava/io/BufferedReader;.lines ()Ljava/util/stream/Stream;
01-20 04:41:51.745 1563-1563/com.example.callister.callistroninventory D/dalvikvm: VFY: replacing opcode 0x6e at 0x004c
01-20 04:41:51.837 1563-1563/com.example.callister.callistroninventory E/EGL_emulation: tid 1563: eglSurfaceAttrib(1210): error 0x3009 (EGL_BAD_MATCH)
01-20 04:41:51.837 1563-1563/com.example.callister.callistroninventory W/HardwareRenderer: Backbuffer cannot be preserved
01-20 04:41:51.949 1563-1563/com.example.callister.callistroninventory E/EGL_emulation: tid 1563: eglSurfaceAttrib(1210): error 0x3009 (EGL_BAD_MATCH)
01-20 04:41:51.949 1563-1563/com.example.callister.callistroninventory W/HardwareRenderer: Backbuffer cannot be preserved
01-20 04:41:56.869 1563-1563/com.example.callister.callistroninventory W/InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
01-20 04:44:00.317 1563-1563/com.example.callister.callistroninventory D/AndroidRuntime: Shutting down VM
01-20 04:44:00.317 1563-1563/com.example.callister.callistroninventory W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xa4d45b20)
01-20 04:44:00.333 1563-1563/com.example.callister.callistroninventory D/dalvikvm: GC_FOR_ALLOC freed 200K, 9% free 3359K/3680K, paused 11ms, total 11ms
01-20 04:44:00.337 1563-1563/com.example.callister.callistroninventory E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.callister.callistroninventory, PID: 1563
android.os.NetworkOnMainThreadException
at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1145)
at java.net.InetAddress.lookupHostByName(InetAddress.java:385)
at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
at java.net.InetAddress.getAllByName(InetAddress.java:214)
at com.android.okhttp.internal.Dns$1.getAllByName(Dns.java:28)
at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:216)
at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:122)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:292)
at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:136)
at com.posadskiy.currencyconverter.service.CurrencyConvertService.getBufferReaderByUrl(CurrencyConvertService.java:38)
at com.posadskiy.currencyconverter.service.CurrencyConvertService.rate(CurrencyConvertService.java:16)
at com.posadskiy.currencyconverter.CurrencyConverter.rate(CurrencyConverter.java:325)
at com.example.callister.callistroninventory.CompleteActivity$2.onClick(CompleteActivity.java:94)
at android.view.View.performClick(View.java:4438)
at android.view.View$PerformClick.run(View.java:18422)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Good afternoon.
I wanted to use your library, but I found some problems:
Thank you in advance for your answer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.