Closed kwhitejr closed 6 years ago
Updated to AS 3.1.3 and got Emojify to build with the following app.gradle.build
:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.example.android.emojify"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
implementation 'com.google.android.gms:play-services-vision:15.0.2'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.jakewharton.timber:timber:4.7.0'
testCompile 'junit:junit:4.12'
}
No thanks to useless Udacity support. @udacity-design-engineering Update your repos.
The
build.gradle
file forapp
returns numerous warnings from Android Studio 3.1.2.After following Android Studio's instructions for fixing critical errors, invalidating and clearing cache, Android Studio still does not properly import various packages (e.g.
import android.support.v7.app.AppCompatActivity
).Full list of failed imports: import android.support.design.widget.FloatingActionButton; import android.support.v4.app.ActivityCompat; import android.support.v4.content.ContextCompat; import android.support.v4.content.FileProvider; import android.support.v7.app.AppCompatActivity;