Open KacperPaszkowski opened 3 years ago
same problem...
build.gradle
dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" implementation "com.facebook.react:react-native:+" // From node_modules implementation project(':sp-react-native-mqtt') }
not
implementation ':sp-react-native-mqtt'
THEN DO NOT ADD packages.add(new RCTMqttPackage()); IN MainApplication.java
LIKE
@Override
protected List
Hi! Have you ever tried just run yarn add sp-react-native-mqtt
?
This worked for me with no adding modifying. I have just checked in android/app/src/main/AndroidManifest.xml
if <uses-permission android:name="android.permission.INTERNET" />
was there and thats it!
What worked for me, with RN 0.65.1 was to not change any of the Android project files and just install the module usingyarn
and build again. The only manual change I made was the Podfile
on iOS.
Wish this will help someone.
Wish this will help someone.
thx, it works
I'm trying to build app with this library. I changed all files shown in README and I'm still getting error