in android/build.gradle file, delete the compile... row that it says in the installation. and add this code to the top of buildscript block:
subprojects { subproject -> afterEvaluate{ if((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) { android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject.ext.buildToolsVersion } } } }
This fixed the gradle issue which I faced after I changed compile to implementation.
Delete the new RCTBluetoothSerialPackage() inside getPackages function which is inside
I had troubles make this library work so here is what I did:
subprojects { subproject -> afterEvaluate{ if((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) { android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject.ext.buildToolsVersion } } } }
This fixed the gradle issue which I faced after I changed compile to implementation.I have no idea what react-native link was doing but I believe that this has to do something with it and it no longer needed.
And after those steps I managed to get it working.