Complete gradle file, and even unable to resolve the symbol 'AppCompatActivity'. Don't understand what's wrong.
Already tried options :: 1) Clean and Rebuild 2) Invalidate/Catches and Restart
apply plugin: 'com.android.application'
apply plugin: 'com.jfrog.bintray'
repositories {
jcenter()
maven {
url "https://jitpack.io"
}
}
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
applicationId "com.example.app"
minSdkVersion 19
targetSdkVersion 27
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation project(':blocklylib-core')
implementation project(':blocklylib-vertical')
}
For SDK 27 and higher use import androidx.core.view.ViewCompat;
Add this in your build.gradle file-
implementation 'com.android.support:support-v13:26.0.2'
Now,
Delete "/.idea/libraries" and then synced with gradle and built again.
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