While Building app


we have created one custom plugin by using webrtc google lib ,we are able to add into our project ,but while building the app its throwing the following exception

This is caused by library dependencies that have been compiled using Java 8 or above.
If you are using the ‘java’ gradle plugin in a library submodule add
targetCompatibility = '1.7’
sourceCompatibility = '1.7’
to that submodule’s build.gradle file.
java.lang.RuntimeException: Exception parsing classes

I’m able to resolve it by using android studio i made same changes in build.gradle in module level ,but we are not able to build through command, because when we are building the app all the file are getting reset then again we are getting the same exception.

is there any solution ,please let us know .thank you…

this the IONIC INFO:-

Your system information:

Cordova CLI: 7.0.0
Gulp version: CLI version 1.4.0
Gulp local: Local version 3.9.1
Ionic Framework Version: 1.3.2
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Node Version: v8.11.2

Thank you…


Have you solved it? Im facing the same issue changing java versions, gradle in target and source compatibility, adding jackOptions but nothing.


Hey there, i’ve solved it!
It seems to be more than one workaround, in my case it was the okhttp3 (3.0.0) version and facebook sdk version (4.25.0).