0

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

2 Answers 2

1

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?

Sign up to request clarification or add additional context in comments.

2 Comments

I have located the file. But not getting how to configure.. Please Help!!
It is asking for a template to select.
1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.