dialogflow / dialogflow-android-client

Android SDK for Dialogflow
https://dialogflow.com
Apache License 2.0
575 stars 270 forks source link

Use of StandardCharsets.UTF_8 in AIDataService breaks compatibility with Android SDK prior to 19 #26

Closed DiegoAnfuso closed 7 years ago

DiegoAnfuso commented 7 years ago

The use of SDK 19+ constant StandardCharsets.UTF_8 crash the service in devices prior to Android SDK 19.

Error: java.lang.NoClassDefFoundError: java.nio.charset.StandardCharsets at ai.api.AIDataService.(AIDataService.java:59)

folomeev commented 7 years ago

Fixed the issue in Java SDK, it will be available in a closest release.

xVir commented 7 years ago

Hi, @DiegoAnfuso Could you please try library version 2.0.2:

compile 'ai.api:sdk:2.0.2@aar'

The problem should be fixed now.

Thanks!

DiegoAnfuso commented 7 years ago

Hi, the problem was solved upgrading this:

compile 'ai.api:libai:1.3.5'

Thanks for the quick feedback!