Working in IntelliJ and uploaded source code for an app via Github to create the project.
I'm having the hardest time compiling a java class due to dependencies (as far as I can tell). The .jar files I need as dependencies for my java class appear in the .idea/libraries folder as .xml files. They also appear when I go to View/Tool Windows/Gradle and double-click on Tasks/android/androidDependencies as LOCAL dependencies. However, in my java class file there are variables from the imported .jar file dependencies that yet cannot be resolved. Whenever I try and add the .jar files to my Project Library, Gradle asks to sync the project and as a result, the directories for the .jar files in the Project Library change to my project/app file and are underlined in red and corrupted. When I don't sync the project, there are compilation errors that read that the instances in my java class that derive from those .jar dependencies cannot be found (they don't reference the dependency).
Here is what my app/build.gradle file looks like (the dependencies that aren't working right are those last four at the end: selenium-server-standalone-2.53.0.jar, jacoco-maven-plugin-0.7.7.201606060606.jar, jbrofuzz-core-2.5.jar, and java-client-4.0.0.jar)
Can anyone help me figure this out? I can provide more information as needed.
    apply plugin: 'com.android.application'
android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"
    //noinspection GroovyAssignabilityCheck
    defaultConfig {
        applicationId "eu.wikijourney.wikijourney"
        minSdkVersion 15
        targetSdkVersion 22
        versionCode 21
        versionName '1.2.0'
    }
    //noinspection GroovyAssignabilityCheck
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    //noinspection GroovyAssignabilityCheck
    packagingOptions {
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/DEPENDENCIES'
    }
    //noinspection GroovyAssignabilityCheck
    productFlavors {
    }
//noinspection GroovyAssignabilityCheck
    lintOptions{ // https://stackoverflow.com/a/32676398/3641865
        disable 'MissingTranslation' // So gradle stops complaining about the generated app_version string
                                     // not present in all translations. This is a (not so) ugly hack.
    }
    // https://stackoverflow.com/a/29525111/3641865
    applicationVariants.all { variant ->
        variant.resValue "string", "app_version", variant.versionName
    }
}
repositories {
    mavenCentral()
    flatDir {
        dirs 'libs'
    }
}
//noinspection GroovyAssignabilityCheck
dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:22.2.1'
    compile 'com.android.support:design:22.2.1'
    compile 'com.android.support:recyclerview-v7:22.2.1'
    compile 'com.android.support:cardview-v7:22.2.1'
    compile 'com.android.support:support-v4:22.2.1'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.loopj.android:android-async-http:1.4.9'
    compile 'org.apache.commons:commons-lang3:3.3.2'
    compile 'com.google.code.gson:gson:2.3.1'
    compile 'org.osmdroid:osmdroid-android:5.0.1@aar'
    compile 'com.github.MKergall.osmbonuspack:OSMBonusPack:v5.6'
    compile 'com.github.k3b:k3b-geoHelper:v1.1.1'
    compile files('selenium-server-standalone-2.53.0.jar')
    compile files('jbrofuzz-core-2.5.jar')
    compile files('jacoco-maven-plugin-0.7.7.201606060606.jar')
    compile files('java-client-4.0.0.jar')
    // compile 'com.github.k3b:APhotoManager:k3b-geoHelper:test-libgeo-0.4.7.160321'
}
 
    