I have been using Android Studio for a while now and I've decided to switch to Gradle. That caused a whole lot of issues. I managed to get the project to import after some fiddling with the build.gradle file. I am also using 2 libraries for my project(redlaser and ksoap2), that have been messed up. And I'm also trying to add New Relic to my project.
Here is my build file :
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}
}
apply plugin: 'android'
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
}
android {
compileSdkVersion 19
buildToolsVersion "18.0.1"
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
instrumentTest.setRoot('tests')
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
}
This works but ofc redlaser won't work with it.
I have searched and searched and I cannot find any good tutorials that walk me through creating a propper build file. Also, merging this https://rpm.newrelic.com/accounts/447602/mobile/2760487/deploy caused issues and won't work.
The redlaser library is redlasersdk.jar/com.ebay.redlasersdk/ (they are already added as libraries, by right-click and add as library) I do NOT have a settings.gradle file. AND if i look at my project's structure in the right panel there is no libraries tab. (but I did manage to access it by clicking on an icon of an error notice on the bottom of the Project Structure tab)
Any help would be appreciated.