Open Tex1976 opened 2 years ago
Describe the problem The code provided to enable Safe Args cannot be used as it is, in the last version of Android Studio.
In which step of the codelab can this issue be found? Task 9 (Implement the second fragment) Step 5 (Enable SafeArgs)
Versions
Additional information Solution I added the following lines at the beginning of Gradle Scripts > build.gradle (Project: My First App)
buildscript { repositories { google() } dependencies { def nav_version = "2.4.1" classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version") } }
Then I modified Gradle Scripts > build.gradle (Module: app)
plugins { id 'com.android.application' id 'androidx.navigation.safeargs' }
codelab: build-your-first-android-app-java
Describe the problem The code provided to enable Safe Args cannot be used as it is, in the last version of Android Studio.
In which step of the codelab can this issue be found? Task 9 (Implement the second fragment) Step 5 (Enable SafeArgs)
Versions
Additional information Solution I added the following lines at the beginning of Gradle Scripts > build.gradle (Project: My First App)
Then I modified Gradle Scripts > build.gradle (Module: app)
codelab: build-your-first-android-app-java