Skip to content

Commit b0228e8

Browse files
authored
Update Readme.md
1 parent f1655f5 commit b0228e8

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,21 @@ This plugin has been made following a **fragment-pattern** to avoid errors that
109109

110110
This way you can integrate this plugin with your projects even if they already have more plugins. **Truly pluggable**.
111111

112-
## Upgrading dependencies 📜
112+
## Upgrading dependencies and choosing plugin version 📜
113+
Keep in mind that the latest versions [v1.3](https://github.com/EricBatlle/UnityAndroidSpeechRecognizer/releases/tag/v1.3) and [v1.3.support](https://github.com/EricBatlle/UnityAndroidSpeechRecognizer/releases/tag/v1.3.support) of the plugin work with different android support libraries even if they have identical features.
113114

114-
Keep in mind that the actual release ([v1.3](https://github.com/EricBatlle/UnityAndroidSpeechRecognizer/releases/tag/v1.3)) of the plugin works with **AndroidX** dependencies. That means that is targeting **Android 9** (API level 28).
115+
- **[v1.3](https://github.com/EricBatlle/UnityAndroidSpeechRecognizer/releases/tag/v1.3)** works with works with **AndroidX** dependencies. That means that is targeting **Android 9** (API level 28).
116+
- **[v1.3.support](https://github.com/EricBatlle/UnityAndroidSpeechRecognizer/releases/tag/v1.3.support)** works with works with **Support-v4** dependencies. That means that is targeting **Android 7** (API level 24).
115117

116-
If you want to target older versions I recommend to use the old version of the plugin ([v1.0]((https://github.com/EricBatlle/UnityAndroidSpeechRecognizer/releases/tag/v1.0))) that works with **Android Support v4**. *But remember that some features like specify recognition language aren't available for the moment.* You can download the old plugin source code and APK from [here](https://github.com/EricBatlle/UnityAndroidSpeechRecognizer/releases/tag/v1.0).
118+
### Why multiple versions and when to use each one?
119+
Basically cause there are multiple plugins and SDK's out there that work with similar libraries or different API requirements.
120+
If your other plugins and SDK's use API lvl 28 or above, choose [v1.3](https://github.com/EricBatlle/UnityAndroidSpeechRecognizer/releases/tag/v1.3) version.
121+
If you need to target older devices (to a minimum of API level 24) choose [v1.3.support](https://github.com/EricBatlle/UnityAndroidSpeechRecognizer/releases/tag/v1.3.support) version.
122+
123+
## Controlled Exceptions 🚨
124+
How to solve some of the most typical exceptions when trying to deal with multiple plugins
125+
126+
#### Duplicate class XXXXX found in modules classes.jar (androidx.core:core:1.0.0) and classes.jar (com.android.support:support-compat:27.1.1)
127+
This exceptions means that another of your project plugins is using a library (like androidX) that internally uses the same class as another library that is using the current plugin.
128+
The easiest way to solve this problem is to remove one of the lib file (usually .aar) from one of the two plugins. Keep in mind that this is only valid in case that the erased library is using specific classes that exists in the prior one.
129+
In case you have Player Service Resolver on your project you can also do "Delete Resolved Libraries" and "Resolve".

0 commit comments

Comments
 (0)