Comments (8)
Same problem on a Samsung S5
It works like a charm on a Samsung tab A 2016
from fiskaly-kassensichv-client-java.
The issue only occurs when creating a transaction.
Creating a TSS or a CLIENT work well.
from fiskaly-kassensichv-client-java.
@Greelings Which Android Version (API Version) are you using on the S4 and S5. According to other issues I have seen String.join was added in Java 8 / Android API 26. What according to https://en.wikipedia.org/wiki/Android_version_history#Android_8.0_Oreo_(API_26) should be in Version 8.0 and higher.
from fiskaly-kassensichv-client-java.
@prempador That's the problem. Our app is targeting devices >= API 21 (lollipop) Which represents 89.3% of the Android devices.
According to https://developer.android.com/about/dashboards, targeting devices >= API 26 will make our app compatible with only 38.7% of the Android devices. That's a serious problem for us.
Do you think possible to support devices from API 21?
from fiskaly-kassensichv-client-java.
Here is how you can easily solve the problem:
You can use TextUtils.join instead:
String result = TextUtils.join(", ", list);
(String.join was added in Java 8, which is why you can't use it in Android.)
Source: https://stackoverflow.com/a/33803041/5607457
from fiskaly-kassensichv-client-java.
@Greelings Thanks for the information. First I thought this was a problem on okhttp3's side. But after reading through the error more carefully I saw that this is in fact in our code. I will come back to you later after fixing this.
from fiskaly-kassensichv-client-java.
Ok perfect, thank you.
from fiskaly-kassensichv-client-java.
Issue should be fixed by this PR.
from fiskaly-kassensichv-client-java.
Related Issues (16)
- TokenManager: wrong call of RequestBody.create HOT 2
- Windows: Too many follow-up requests 21 HOT 11
- Exception on Android: com/fiskaly/kassensichv/sma/Sma HOT 4
- Update a transaction: querystring.last_revision should be integer HOT 6
- Size optimization HOT 2
- Missing com.fiskaly.kassensichv.client.android-<version>.jar for Android HOT 9
- Error compiling the project: Duplicate classes HOT 9
- Error on build HOT 1
- Empty certificate serial when I retrieve a transaction HOT 5
- Proguard rules HOT 4
- Impossible to generate a signed Bundle with Android Studio HOT 4
- Missing "x86" os.arch handling
- SmaLoader: On MacOS wrong libPath HOT 2
- SmaLoader: set different path for library HOT 4
- 404 when trying to finish transactions through SMA HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fiskaly-kassensichv-client-java.