Friday, 15 July 2016

Compiler errors in Android API 24 source code

After downloading and installing the API 24 source code, I am seeing a large number of compiler errors in classes that have changes in API 24.



For example, the AccessibilityService class has hundreds of "Cannot resolve symbol" errors on variables, methods, imports etc.



I have tried deleting and redownloading sources multiple times to no avail. Is this a common occurrence with a new set of sources or did I do something wrong?



Edit:




Here is my app Gradle file, and I am using 'com.android.tools.build:gradle:2.1.0'
apply plugin: 'com.android.application'



android {
compileSdkVersion 24
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.nyelito.dactyl"

minSdkVersion 23
targetSdkVersion 24
versionCode 10
versionName "1.2.2"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile(
[group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.4.1'],
)
provided 'org.glassfish:javax.annotation:10.0-b28'

compile('com.mikepenz:aboutlibraries:5.6.7@aar') {
transitive = true
}


compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:support-v4:24.0.0'
compile 'com.github.medyo:android-about-page:1.0.5'
compile 'com.github.thepacific:adapter:1.0.5'
compile 'com.google.firebase:firebase-database:9.0.2'

compile 'com.google.firebase:firebase-messaging:9.0.2'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.github.paolorotolo:appintro:4.0.0'
}

apply plugin: 'com.google.gms.google-services'


Here is a screenshot of what it looks like

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...