Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plugin with id 'androidx.navigation.safeargs' not found

When I try to add Safe Args (Android Navigation) to my app's as following

( using this guide : https://developer.android.com/topic/libraries/architecture/navigation/navigation-pass-data ) :

apply plugin: 'com.android.application' apply plugin: 'androidx.navigation.safeargs'  apply plugin: 'kotlin-android'  apply plugin: 'kotlin-android-extensions' apply plugin: 'com.google.gms.google-services'  android {... 

I receive this error :

Plugin with id 'androidx.navigation.safeargs' not found.

like image 483
AVEbrahimi Avatar asked Dec 25 '18 09:12

AVEbrahimi


People also ask

What is Androidx navigation?

Navigation is a framework for navigating between 'destinations' within an Android application that provides a consistent API whether destinations are implemented as Fragments, Activities, or other components. Latest Update. Stable Release. Release Candidate. Beta Release.

Where is project level build gradle?

It is located in the root project directory and its main function is to define the build configurations that will be applied to all the modules in the project.


1 Answers

To add androidx.navigation.safeargsplugin follow below step's

  1. classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0-alpha09"
    (latest) Add above to your Project Gradel file inside dependency block

  2. Then add apply plugin: 'androidx.navigation.safeargs' to your app/Module gradle file

like image 55
Anmol Avatar answered Sep 22 '22 09:09

Anmol