Hi
I wasn’t able to rebuilt with phonegap an old project of mine.
After 2 days of troubles, finally i have been able to build it again and i want to share the solution with people who might face the same issue.
What i did first was to find out on the page of Adobe PhoneGap Build
https://build.phonegap.com/apps/xxxxxxx/builds
(xxxxxxx my BuildID in Appstudio)
by the Log Error you find on that page, what was the reason of the failure of posting the project by the IDE Appstudio.
I understood that it was just a matter of Phonegap version and plugins version (spec) used.
Because, when there is any modification on phonegap or any plugin, your projects could be badly affected, i strongly suggest to specify the version actually working for your project; you can get a list from the Log or by clicking on the button Plugins of that page to go to the list
https://build.phonegap.com/apps/xxxxxxx/plugins
of your plugins with their version number.
The config.xml file that worked for me is the following one.
<?xml version="1.0" encoding="UTF-8"?>
<widget
xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.nsbasic.{id}"
version = "{version}">
<name>{title}</name>
<description>{description}</description>
<preference name="phonegap-version" value="cli-6.5.0" />
<preference name="permissions" value="none"/>
<preference name="orientation" value="portrait"/>
<preference name="target-device" value="universal"/>
<preference name="fullscreen" value="false"/>
<preference name="prerendered-icon" value="true"/>
<preference name="EnableViewportScale" value="true"/>
<preference name="DisallowOverscroll" value="true" />
<plugin name="cordova-plugin-camera" spec="2.1.1" />
<plugin name="cordova-plugin-device" spec="2.0.2" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="cordova-plugin-vibration" spec="3.1.0" />
<plugin name="phonegap-plugin-barcodescanner" spec="5.0.1" />
<plugin name="cordova-plugin-bluetooth-serial" spec="0.4.7" />
<plugin name="cordova-plugin-insomnia" spec="4.3.0" />
<plugin name="cordova-plugin-flashlight" spec="3.2.0" />
<feature name="http://api.phonegap.com/1.0/camera"/>
<feature name="http://api.phonegap.com/1.0/device"/>
<feature name="http://api.phonegap.com/1.0/vibration"/>
<feature name="https://github.com/VersoSolutions/CordovaClipboard"/>
<platform name="android">
<icon qualifier="ldpi" src="res/icons/android/drawable-ldpi-icon.png" />
<icon qualifier="mdpi" src="res/icons/android/drawable-mdpi-icon.png" />
<icon qualifier="hdpi" src="res/icons/android/drawable-hdpi-icon.png" />
<icon qualifier="xhdpi" src="res/icons/android/drawable-xhdpi-icon.png" />
<icon qualifier="xxhdpi" src="res/icons/android/drawable-xxhdpi-icon.png" />
<icon qualifier="xxxhdpi" src="res/icons/android/drawable-xxxhdpi-icon.png" />
<splash qualifier="land-ldpi" src="res/screens/android/drawable-land-ldpi-screen.png" />
<splash qualifier="land-mdpi" src="res/screens/android/drawable-land-mdpi-screen.png" />
<splash qualifier="land-hdpi" src="res/screens/android/drawable-land-hdpi-screen.png" />
<splash qualifier="land-xhdpi" src="res/screens/android/drawable-land-xhdpi-screen.png" />
<splash qualifier="land-xxhdpi" src="res/screens/android/drawable-land-xxhdpi-screen.png" />
<splash qualifier="land-xxxhdpi" src="res/screens/android/drawable-land-xxxhdpi-screen.png" />
</platform>
<splash src="{splashscreen}"/>
<preference name="AutoHideSplashScreen" value="true" />
<preference name="SplashScreenDelay" value="8000" />
</widget>
Remember that the list of icons and splashscreen images must be entered also in your manifest with \ instead of / for example
res\icons\android\drawable-ldpi-icon.png
res\icons\android\drawable-mdpi-icon.png
res\icons\android\drawable-hdpi-icon.png
res\icons\android\drawable-xhdpi-icon.png
res\icons\android\drawable-xxhdpi-icon.png
res\icons\android\drawable-xxxhdpi-icon.png
res\screens\android\drawable-land-ldpi-screen.png
res\screens\android\drawable-land-mdpi-screen.png
res\screens\android\drawable-land-hdpi-screen.png
res\screens\android\drawable-land-xhdpi-screen.png
res\screens\android\drawable-land-xxhdpi-screen.png
res\screens\android\drawable-land-xxxhdpi-screen.png
If the version of Phonegap or plugins is left blank in your project, or in the case your plugins version doesn’t match with the proper phonegap version, your app may not work in a future rebuilding.
Hope this will help some one.