I have this in my gradle file for an android studio application...`
apply plugin: 'com.android.application'
def ftcLibLocation = "../../../android/ftc_lib/ftc_app/FtcRobotController/libs"
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "teamXXXX.testbot"
minSdkVersion 19
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:22.1.1'
compile files('${ftcLibLocation}/FtcRobotController-debug.jar')
compile files('${ftcLibLocation}/FtcCommon-release.jar')
compile files('${ftcLibLocation}/ModernRobotics-release.jar')
compile files('${ftcLibLocation}/RobotCore-release.jar')
compile files('${ftcLibLocation}/WirelessP2p-release.jar')
compile files('${ftcLibLocation}/Analytics-release.jar')
compile files('${ftcLibLocation}/d2xx.jar')
}
and yet when I compile the program gradle/android studio complains that it can't find packages that I know are located in those jars.
Error:(3, 47) error: package com.qualcomm.robotcore.eventloop.opmode does not exist
That package is located in ${ftcLibLocation}/RobotCore-release.jar why isn't the build locating it?