I try to run simple app with Onesignal and I keep getting this error:
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library [com.onesignal:OneSignal:3.6.3] C:\temp\html2\platforms\android\build\intermediates\exploded-aar\com.onesignal\OneSignal\3.6.3\AndroidManifest.xml Suggestion: use tools:overrideLibrary="com.onesignal" to force usage
This is the code I'm running (Yeah, very simple)
phonegap create html2 --id "li.co.html2" --name "html1.02"
cd html2
phonegap plugin add onesignal-cordova-plugin --save
cordova plugin add cordova-plugin-whitelist
cordova platform add android
cordova platform add ios
phonegap build
This reason why you're getting that error is because cordova builds an android project with a minimum sdk version of 14, while the library oneSignal requires a minimum version of 15. Rebuild cordova and set its default minSdkVersion to 15