You need to sign in to do that
Don't have an account?
Adrian Hidalgo
MC-Cordova-Plugin package R does not exist
I'm trying to integrate Marketing Cloud Push Notifications with Ionic 3 using Salesforce Marketing Cloud Cordova Plugin, but when I execute ionic cordova run android --device the error "package R does not exist" appears, here is a part of the error code:
Someone can help me?
BUILD FAILED Total time: 27.239 secs Error: /Users/aiusda/Ionic/push_notifications_MC/platforms/android/gradlew: Command failed with exit code 1 Error output: /Users/aiusda/Ionic/push_notifications_MC/platforms/android/src/com/salesforce/marketingcloud/cordovaplugin/MCCordovaPluginApplication.java:31: error: package R does not exist boolean mcAnalyticsEnabled = "enabled".equalsIgnoreCase(getString(R.string.MCANALYTICS)); ^ /Users/aiusda/Ionic/push_notifications_MC/platforms/android/src/com/salesforce/marketingcloud/cordovaplugin/MCCordovaPluginApplication.java:38: error: package R does not exist .setNotificationChannelName(String.valueOf(R.string.CHANNELNAME)) ^ /Users/aiusda/Ionic/push_notifications_MC/platforms/android/src/com/salesforce/marketingcloud/cordovaplugin/MCCordovaPluginApplication.java:36: error: package R does not exist .setGcmSenderId(getString(R.string.GCMSENDERID)) ^ /Users/aiusda/Ionic/push_notifications_MC/platforms/android/src/com/salesforce/marketingcloud/cordovaplugin/MCCordovaPluginApplication.java:35: error: package R does not exist .setAccessToken(getString(R.string.ACCESSTOKEN)) ^ /Users/aiusda/Ionic/push_notifications_MC/platforms/android/src/com/salesforce/marketingcloud/cordovaplugin/MCCordovaPluginApplication.java:34: error: package R does not exist .setApplicationId(getString(R.string.APPID))Salesforce Marketing Cloud Cordova Plugin Repository
Someone can help me?
Hardcoding (as much as it isnt a great idea) seems to a viable workaround at the moment APPNAME\platforms\android\app\src\main\java\com\salesforce\marketingcloud\cordovaplugin\MCCordovaPluginApplication.java
import com.cloudmobile.mcpn.R;
Where com.cloudmobile.mcpn is the packete of my application. However, another problem appeared: