Describe the problem
The GDGFinderFinal app is crashing when clicking on the FAB, generating the following exception:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.android.gdgfinder, PID: 21069
retrofit2.HttpException: HTTP 404 Not Found
at com.jakewharton.retrofit2.adapter.kotlin.coroutines.CoroutineCallAdapterFactory$BodyCallAdapter$adapt$2.onResponse(CoroutineCallAdapterFactory.kt:104)
at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:129)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:206)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
I/Process: Sending signal. PID: 21069 SIG: 9
Possible reason for crashing
In the GdgApiService.kt file, the @GET("gdg-directory.json") is not getting resolved at the BASE_URL = "https://android-kotlin-fun-mars-server.appspot.com/".
How to reproduce?
Run the GDGFinderFinal app, and click either on the FAB or the Menu --> GDG Search. It will momentarily show a new screen saying "Waiting for location and network result", and then crashes.
Versions
Android Studio 4.0.1
API 30
Additional information
NIL
codelab: android-kotlin-fundamentals
@jtavva Can you look into this? Thanks in advance.
Name of the Codelab or Codelab URL Kotlin Android Fundamentals: Styles and themes
Describe the problem The GDGFinderFinal app is crashing when clicking on the FAB, generating the following exception:
Possible reason for crashing In the GdgApiService.kt file, the
@GET("gdg-directory.json")
is not getting resolved at theBASE_URL = "https://android-kotlin-fun-mars-server.appspot.com/"
.In which lesson and step of the codelab can this issue be found? Lesson 10: Designing for everyone + Step 7. Solution code
How to reproduce? Run the GDGFinderFinal app, and click either on the FAB or the Menu --> GDG Search. It will momentarily show a new screen saying "Waiting for location and network result", and then crashes.
Versions
Additional information NIL
codelab: android-kotlin-fundamentals
@jtavva Can you look into this? Thanks in advance.