Search code examples
react-nativewifi

> Task :react-native-wifi-reborn:compileDebugJavaWithJavac FAILED (React-Native)


I have installed react-native-wifi-reborn and when run react-native run-android I get the above mentioned error:

> Task :react-native-wifi-reborn:compileDebugJavaWithJavac FAILED

................................................................................



le.java:27: error: cannot find symbol

import com.reactlibrary.rnwifi.errors.GetCurrentWifiSSIDErrorCodes;  

Adding the Image of my Android Studio:

enter image description here

enter image description here

enter image description here

I don't know what to do next!!

I need help!! Thank You


Solution

  • I did the config but not in Android Studio I just changed this file GetCurrentWifiSSIDErrorCodes extension from .kt to .java and added this:

    package com.reactlibrary.rnwifi.errors;
    
    public enum GetCurrentWifiSSIDErrorCodes {
        /**
         * Not connected or connecting.
         */
        CouldNotDetectSSID,
    }
    

    But later I got another error > Task :app:processDebugManifest FAILED

    I got the solution I referred this answer #issuecomment-461852948. Also, the answer is discussed here. Thank you!!