Satyam
Satyam

Reputation: 647

> 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

Upvotes: 0

Views: 918

Answers (2)

Satyam
Satyam

Reputation: 647

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!!

Upvotes: 1

Crazy Pioneer
Crazy Pioneer

Reputation: 43

I solved it.

GetCurrentWifiSSIDErrorCodes is not java file. Configure it from Android Studio.

You can see configure button on top of the window if you open that file.

That's all.

Would you like to click here?

Upvotes: 1

Related Questions