Reputation: 647
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:
I don't know what to do next!!
I need help!! Thank You
Upvotes: 0
Views: 918
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
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.
Upvotes: 1