-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failed for Android, when the version target 4.3.5 or 4.3.6 #153
Comments
I'm having trouble using latest version as well. |
4.3.5 can pass, 4.3.6 can not |
Hi, Similar issue here. info Installing the app...
> Task :react-native-wifi-reborn:compileDebugJavaWithJavac FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
72 actionable tasks: 2 executed, 70 up-to-date
C:\Users\Latitude E7440\Documents\React-Native\lightControlApp\node_modules\react-native-wifi-reborn\android\src\main\java\com\reactlibrary\rnwifi\RNWifiModule.java:27: error: cannot find symbol
import com.reactlibrary.rnwifi.errors.GetCurrentWifiSSIDErrorCodes;
^
symbol: class GetCurrentWifiSSIDErrorCodes
location: package com.reactlibrary.rnwifi.errors
C:\Users\Latitude E7440\Documents\React-Native\lightControlApp\node_modules\react-native-wifi-reborn\android\src\main\java\com\reactlibrary\rnwifi\RNWifiModule.java:310: error: package GetCurrentWifiSSIDErrorCodes does not exist
promise.reject(GetCurrentWifiSSIDErrorCodes.CouldNotDetectSSID.toString(), "Not connected or connecting.");
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-wifi-reborn:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details. My enviroment is
|
Did you get any solution for this?? |
@Satyam-code143 You can use version "react-native-wifi-reborn": "4.3.5" |
Hey, @ujjwalsayami thank you for your response. I tried installing 4.3.5 version but now I am getting a new error.
|
@Satyam-code143 can you post your full error |
@ujjwalsayami Here is my error: |
Hi! The problem was that GetCurrentWifiSSIDErrorCodes was a Kotlin file. The solution:
package com.reactlibrary.rnwifi.errors;
public enum GetCurrentWifiSSIDErrorCodes {
/**
* Not connected or connecting.
*/
CouldNotDetectSSID,
}
npx react-native run-android |
Hey! I tried this but I got this error!!
|
Maybe if you try with 4.3.6 version? In the comment you made above this error showed up when you changed to 4.3.5 version. |
No the error comes for both the versions. |
@lucaguazzaroni Your answer helped a lot. I did get the above mentioned Error. @ujjwalsayami and @crazypioneer thank you for your help. |
Looks like I was to enthusiastic on mixing Kotlin and Java. Let me fix this. |
I am getting build failed previously I was using version 4.7.0 and it was working fine but now when I upgrade it to 4.10.1(latest) Then I facing issue while building debug FAILURE: Build completed with 2 failures. 1: Task failed with an exception.
2: Task failed with an exception.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. BUILD FAILED in 5s can someone help me? |
@Asharuddin-90 any update to this issue? |
"react-native": "0.61.2",
"react-native-wifi-reborn": "^4.3.3",
When I set to 4.3.3, the build is successful.
Error:
The text was updated successfully, but these errors were encountered: