Hello I have a simple android project. In that project I added an External jar file following this Stackoverflow Add External jar
Which generates below line in build.gradle(app):
implementation files('libs\\classes.jar')
This Compile and run fine in Android Studio. I am trying to build the project in command line using below command:
./gradlew assembleDebug
But build is failed for the external library. Error Snippet:
> Task :app:compileDebugJavaWithJavac FAILED*/LockFragment.java:25: error: cannot access ABCWrapperimport com.example.ABCWrapper; ^bad class file: pathtocode/Code/app/libs/classes.jar(/com/example/ABCWrapper.class) class file has wrong version 61.0, should be 55.0 Please remove or make sure it appears in the correct subdirectory of the classpath.
Tried to change the file path using this, still no luck.
implementation files('libs/classes.jar')
Any Help will be appretiated thanks in advance.