Scenario: One
Currently I am using–> group: ‘io.appium’, name: ‘java-client’, version: ‘5.0.4’
But at build time it shows minimum sdk version is required 26.
Scenario: Two
When using lower version of the appium jar (Version: 3.0.0 to 5.0.0) then can’t able initialized the and android driver. Some error showing in the editor.
Here is the below error:
Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\User7.gradle\caches\modules-2\files-2.1\org.springframework\spring-beans\5.0.0.RELEASE\6f95f071cfe29a84661648e5445dcb054be0cfa7\spring-beans-5.0.0.RELEASE.jar
Error:com.android.builder.dexing.DexArchiveBuilderException: Error while dexing org/springframework/beans/PropertyMatches$FieldPropertyMatches.class
Error:com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
Error:Execution failed for task ‘:app:transformClassesWithDexBuilderForDebug’.
com.android.build.api.transform.TransformException:
com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process C:\Users\User7.gradle\caches\modules-2\files-2.1\org.springframework\spring-beans\5.0.0.RELEASE\6f95f071cfe29a84661648e5445dcb054be0cfa7\spring-beans-5.0.0.RELEASE.jar
Can anyone please suggest regarding this issue?