I have upgraded my phonegap project to cordova 4.1.1 from cordova 3.5.1. And remove existing old version of splash screen plugin and add new version of it. And also added new plugin whitelist as well.
But now i have a problem when building APK from CLI command it gives following error. But when i import APK using eclipse it wont give error and outputs the APK correctly. Followings are the command that i have executed.
cordova build android
android update project -p platforms/android --subprojects
ant clean release.
while 3rd command run following types of errors comes.
apache/cordova/splashscreen/SplashScreen.java:79: cannot find symbol
[javac] symbol : variable preferences
[javac] location: class org.apache.cordova.splashscreen.SplashScreen
[javac] String splashResource = preferences.getString("SplashScreen", "screen");
How to resolve this?