Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6184

Android build failed for external jar file in Ubuntu

$
0
0

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.


Viewing all articles
Browse latest Browse all 6184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>