Android-nRF-UART
Android-nRF-UART copied to clipboard
Gradle build error with Android 23 and instant run
The App is using older SDK and gradle for compiling the project which is causing build error with Android Studio using latest Android SDK.
https://github.com/NordicSemiconductor/Android-nRF-UART/blob/master/app/build.gradle
Solution
Update your Project level gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
}
}
allprojects {
repositories {
jcenter()
}
}
App level gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.nordicsemi.nrfUARTv2"
minSdkVersion 18
targetSdkVersion 23
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:23.0.0'
}