<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Swathi Vennela</title>
    <description>The latest articles on DEV Community by Swathi Vennela (@swathivennela).</description>
    <link>https://dev.to/swathivennela</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F566951%2Fb7b835cf-2887-4124-9fab-0f8afc82fc46.png</url>
      <title>DEV Community: Swathi Vennela</title>
      <link>https://dev.to/swathivennela</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/swathivennela"/>
    <language>en</language>
    <item>
      <title>Safeargs plugin not generating direction classes</title>
      <dc:creator>Swathi Vennela</dc:creator>
      <pubDate>Thu, 24 Feb 2022 18:50:16 +0000</pubDate>
      <link>https://dev.to/swathivennela/safeargs-plugin-not-generating-direction-classes-4klg</link>
      <guid>https://dev.to/swathivennela/safeargs-plugin-not-generating-direction-classes-4klg</guid>
      <description>&lt;p&gt;I'm trying to use safeargs plugin (for the first time) to pass data and navigate from one fragment to another. After adding the arguments in the destination fragment in the navigation graph, and choosing rebuild, I'm not getting the autogenerated directions class and Args class. &lt;br&gt;
I followed the official docs and added the necessary dependecies for safeargs. I did set android.useAndroidX to true in the gradle.properties as well.&lt;/p&gt;

&lt;p&gt;My app level build.gradle file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plugins {
    id 'com.android.application'
    id 'androidx.navigation.safeargs'
}
android {
    compileSdk 32

    defaultConfig {
        applicationId "com.example.fragnavpractise"
        minSdk 23
        targetSdk 32
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    def nav_version = "2.4.1"
    implementation 'androidx.appcompat:appcompat:1.4.1'
    implementation 'com.google.android.material:material:1.5.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    // Java language implementation
    implementation "androidx.navigation:navigation-fragment:$nav_version"
    implementation "androidx.navigation:navigation-ui:$nav_version"
    // Kotlin
    implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
    implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
    // Feature module Support
    implementation "androidx.navigation:navigation-dynamic-features-fragment:$nav_version"
    // Testing Navigation
    androidTestImplementation "androidx.navigation:navigation-testing:$nav_version"
    // Jetpack Compose Integration
    implementation "androidx.navigation:navigation-compose:$nav_version"

    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My Project level build.gradle file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        google()
    }
    dependencies {
        def nav_version = "2.4.1"
        classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
    }
}
plugins {
    id 'com.android.application' version '7.1.0' apply false
    id 'com.android.library' version '7.1.0' apply false

}

task clean(type: Delete) {
    delete rootProject.buildDir
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My navigation graph:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;navigation xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/payment_navigation_graph"
    app:startDestination="@id/launchFragment"&amp;gt;

    &amp;lt;fragment
        android:id="@+id/launchFragment"
        android:name="com.example.fragnavpractise.LaunchFragment"
        android:label="fragment_launch"
        tools:layout="@layout/fragment_launch" &amp;gt;
        &amp;lt;action
            android:id="@+id/action_launchFragment_to_payFragment"
            app:destination="@id/payFragment" /&amp;gt;
    &amp;lt;/fragment&amp;gt;
    &amp;lt;fragment
        android:id="@+id/payFragment"
        android:name="com.example.fragnavpractise.PayFragment"
        android:label="fragment_pay"
        tools:layout="@layout/fragment_pay" &amp;gt;
        &amp;lt;action
            android:id="@+id/action_payFragment_to_finishFragment"
            app:destination="@id/finishFragment" /&amp;gt;
    &amp;lt;/fragment&amp;gt;
    &amp;lt;fragment
        android:id="@+id/finishFragment"
        android:name="com.example.fragnavpractise.FinishFragment"
        android:label="fragment_finish"
        tools:layout="@layout/fragment_finish" &amp;gt;
        &amp;lt;action
            android:id="@+id/action_finishFragment_to_launchFragment"
            app:destination="@id/launchFragment" /&amp;gt;
        &amp;lt;argument
            android:name="payee_name"
            app:argType="string"
            app:nullable="true" /&amp;gt;
    &amp;lt;/fragment&amp;gt;
&amp;lt;/navigation&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Please help me resolve this.&lt;/p&gt;

</description>
      <category>android</category>
      <category>java</category>
      <category>help</category>
    </item>
    <item>
      <title>npm start error - React</title>
      <dc:creator>Swathi Vennela</dc:creator>
      <pubDate>Thu, 11 Mar 2021 18:28:52 +0000</pubDate>
      <link>https://dev.to/swathivennela/npm-start-error-react-4ppl</link>
      <guid>https://dev.to/swathivennela/npm-start-error-react-4ppl</guid>
      <description>&lt;p&gt;Hey there, I need help in fixing this error. When I run npm start command, I'm getting this error. Please help me out in fixing this.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;events.js:174
      throw er; // Unhandled 'error' event
      ^

Error: ENOSPC: System limit for number of file watchers reached, watch '/home/swathi_vennela/Documents/Dev/react/dojo-blog/public'
    at FSWatcher.start (internal/fs/watchers.js:165:26)
    at Object.watch (fs.js:1258:11)
    at createFsWatchInstance (/home/swathi_vennela/Documents/Dev/react/dojo-blog/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:38:15)
    at setFsWatchListener (/home/swathi_vennela/Documents/Dev/react/dojo-blog/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:81:15)
    at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/swathi_vennela/Documents/Dev/react/dojo-blog/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:233:14)
    at FSWatcher.NodeFsHandler._handleDir (/home/swathi_vennela/Documents/Dev/react/dojo-blog/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:429:19)
    at FSWatcher.&amp;lt;anonymous&amp;gt; (/home/swathi_vennela/Documents/Dev/react/dojo-blog/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:477:19)
    at FSWatcher.&amp;lt;anonymous&amp;gt; (/home/swathi_vennela/Documents/Dev/react/dojo-blog/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:482:16)
    at FSReqWrap.oncomplete (fs.js:154:5)
Emitted 'error' event at:
    at FSWatcher._handleError (/home/swathi_vennela/Documents/Dev/react/dojo-blog/node_modules/webpack-dev-server/node_modules/chokidar/index.js:260:10)
    at createFsWatchInstance (/home/swathi_vennela/Documents/Dev/react/dojo-blog/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:40:5)
    at setFsWatchListener (/home/swathi_vennela/Documents/Dev/react/dojo-blog/node_modules/webpack-dev-server/node_modules/chokidar/lib/nodefs-handler.js:81:15)
    [... lines matching original stack trace ...]
    at FSReqWrap.oncomplete (fs.js:154:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! dojo-blog@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the dojo-blog@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/swathi_vennela/.npm/_logs/2021-03-11T18_14_25_594Z-debug.log
swathi_vennela@swathi-Aspire:~/Documents/Dev/react/dojo-blog$ 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>help</category>
      <category>react</category>
    </item>
  </channel>
</rss>
