Using the latest version of Android Studio (1.4), I created a stock android app.
To test, I need a netCDF data file. A quick google turned up some samples from Unidata:
http://www.unidata.ucar.edu/software/netcdf/examples/files.html
I downloaded one and copied it to my android device.
My gradle file looks like this:
apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "com.intelligentmobiledesign.netcdf" minSdkVersion 16 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.google.android.gms:play-services:8.1.0' compile project(path: ':backend', configuration: 'android-endpoints') compile "edu.ucar:cdm:5.0.0" compile "org.slf4j:slf4j-jdk14:1.7.12" compile "edu.ucar:bufr:5.0.0" compile "edu.ucar:clcommon:5.0.0" compile "edu.ucar:grib:5.0.0" compile "edu.ucar:netcdf4:5.0.0" compile "edu.ucar:opendap:5.0.0" compile "edu.ucar:visadCdm:5.0.0"}
Hy Ed,
ReplyDeletei tried your gradle settings, but they doesn't work in my project(using Android Studio)! Are there other setting which i have to set up?
Thanks :)
Simon