Open jgebbeken opened 6 years ago
I tried the above, and it did solve some "cannot resolve" problems when using build:gradle:3.1.3 , but I still consistently get "cannot resolve symbol IdlingResource". If I try to import android.support.test.espress.IdlingResource, it says "cannot resolve symbol IdlingResource". Tried all the usual invalidating caches, cleaning project, rebuilding project, shutting down AndroidStudio and restarting it again. Time to move on after spending 12 hours trying to get this to build in AndroidStudio.
As of today, the StarterCode builds & runs for me with this build.gradle (app) which uses all the newest versions:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.android.teatime"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
api 'com.android.support:design:28.0.0'
api 'com.android.support:support-annotations:28.0.0'
api ('com.google.firebase:firebase-appindexing:17.1.0') {
exclude group: 'com.android.support', module: 'support-media-compat'
exclude group: 'com.android.support', module: 'support-v4'
}
}
I won't go to the trouble of a pull request since it seems this repo isn't being maintained anyway.
Gradle sync failed: Unsupported method: SyncIssue.getMultiLineMessage(). (Android Studio)
If you want to use the latest versions of the libraries, here what you must do.
compile
is going to be replaced withimplementation
soon. Compiler gives warnings regarding that so you should change it.Testing-only dependancies should be changed from
androidTestCompile
toandroidTestImplementation
com.google.android.gms:play-services-appindexing:x.x.x
is obsolete as it is replaced withcom.google.firebase:firebase-appindexing:x.x.x
wherex.x.x
is the version you need.Here is a changed version that uses the latest libraries. Anything with the $ in it is a String value that you can change if a new version comes out for those.
`dependencies {
}`
Change
compileSdkVersion 25
tocompileSdkVersion 27
The static imports would be highlighted in red on the InstrumentedTest java files. Just delete the static imports and add each one. Can alt + enter on items you have your cursor on that are needing imports.