I got this error when I try to run my app:
- error: cannot find symbol Class NotificationCompat
- error: package NotificationCompat does not exist
- error: package NotificationCompatdoes not exist
Build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
applicationId "com.kingdov.Instagram_repost_downloader_pro"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.parse.bolts:bolts-android:1.4.0'
implementation 'com.parse:parse-android:1.17.3'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:preference-v7:27.1.1'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.mani:ThinDownloadManager:1.2.2'
implementation 'com.google.android.gms:play-services-ads:15.0.1'
implementation 'net.rdrei.android.dirchooser:library:3.2@aar'
implementation 'com.facebook.android:audience-network-sdk:4.26.0'
}
Add this
implementation 'com.android.support:support-compat:27.1.1'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With