davesters / rn-native-mqtt

An MQTT client for React Native that actually works and exposes a simple Javascript interface
MIT License
64 stars 44 forks source link

unexpected element <service> found in <manifest> #17

Open carlos-1410 opened 4 years ago

carlos-1410 commented 4 years ago

Hi, just installed react-native-mqtt and first thing after doing it, is an error

"/node_modules/react-native-mqtt/android/build/intermediates/library_manifest/debug/AndroidManifest.xml:16:5-17:15: AAPT: error: unexpected element service found in manifest."

. Steps to reproduce: It's freshly initialized app, no screens, no source, just default App.js. react-native init MyApp Install packages for which application asks via npm install.

konradcho commented 3 years ago

Just change the gradle version in android/build.gradle to: classpath("com.android.tools.build:gradle:3.5.4")

It worked for me.