I followed the instruction on OneSignal website to build SDK and when I run my application with the command IONIC RUN ANDROID, I get the following error. I am new to Ionic and coding in general, so any help will be appreciated. Here is the link to what I have done so far. I finished everything before step 2, since I am not sure how to and where to add step 2 code. Thank you so much!
Here is the line of code that is causing trouble.
<!--<gap:plugin name="onesignal-cordova-plugin" source="npm" />-->
https://documentation.onesignal.com/v2.0/docs/android-studio-sdk-installation#2-add-required-code
/Users/xiaofanwu/Desktop/work/examplewithonesignal/platforms/android/res/xml/config.xml:48 : AAPT: Error parsing XML: unbound prefix
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:processDebugResources’.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/Users/xiaofanwu/Library/Android/sdk/build-tools/23.0.3/aapt’’ finished with non-zero exit value 1
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
FAILED
BUILD FAILED
Total time: 31.744 secs
Error: Error code 1 for command: /Users/xiaofanwu/Desktop/work/examplewithonesignal/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/xiaofanwu/Desktop/work/examplewithonesignal/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true