Giter VIP home page Giter VIP logo

Comments (2)

matt-oakes avatar matt-oakes commented on June 18, 2024

Hello 👋 Thanks for submitting this issue. To help us triage your issue, can you please resubmit this issue using the templates provided.

from react-native-netinfo.

Ashishlog9 avatar Ashishlog9 commented on June 18, 2024

I am also facing same issue . Even after importing these lines .

Screenshot 2020-03-26 at 2 31 04 PM

Task :@react-native-community_netinfo:compileReleaseJavaWithJavac FAILED
/node_modules/@react-native-community/netinfo/android/src/main/java
/com/reactnativecommunity/netinfo/ConnectivityReceiver.java:14: error: package android.support.v4.net does not
exist
import android.support.v4.net.ConnectivityManagerCompat;
^
/node_modules/@react-native-community/netinfo/android/src/main/java
/com/reactnativecommunity/netinfo/ConnectivityReceiver.java:78: error: cannot find symbol
promise.resolve(ConnectivityManagerCompat.isActiveNetworkMetered(getConnectivityManager()));
^
symbol: variable ConnectivityManagerCompat
location: class ConnectivityReceiver
2 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':@react-native-community_netinfo:compileReleaseJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 18s
21 actionable tasks: 19 executed, 2 up-to-date
AMBIN02224:android 728583$

from react-native-netinfo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.