Skip to content

Building APK

Jim Roal edited this page Oct 15, 2017 · 7 revisions

This project was converted to Android Studio V1.5 and Gradle in version 2.11.13. It does of course get updated to newer versions from time to time. The new build system have a different file structure that Eclipse had. Gradle also is very different than how builds were handled in Eclipse.

There is a missing file you need in the app folder called build.gradle. You will need to create this file and set up the versions and dependencies as follows.

apply plugin: 'com.android.application'
android {
    signingConfigs {
        config {

        }
    }
    compileSdkVersion 23
    buildToolsVersion '25.0.0'
    defaultConfig {
        applicationId "a2dp.Vol"
        minSdkVersion 19
        targetSdkVersion 23
        signingConfig signingConfigs.config
    }
    buildTypes {
        debug {
        }
        release {
            signingConfig signingConfigs.config
            zipAlignEnabled true
            minifyEnabled false
        }
    }
    sourceSets {
        main {
            manifest.srcFile 'src/main/AndroidManifest.xml'
        }
}
    productFlavors {
    }

    lintOptions{
        abortOnError false
    }
}    

dependencies {
    compile 'com.android.support:support-v4:23.1.1'
    //compile 'com.google.android.gms:play-services-appindexing:9.8.0'
}

Here is where the file goes: image

Clone this wiki locally