Possible bug in Cordova Android 8.0.0


ccc_fish
Hello, David! When I built the app, I received the following prompt asking for your help, thank you!


DecSoft

Hello Chen,

The whitelist plugin can be good for compatibility reasons: finally that is not a problem to get our app's APK. However, the next console message is "Source and destination cannot be the same.", which, don't provide too much information about the possible error...

If possible, paste here the entire console log and post also your Cordova version. You can also search in Google (for example) for the error message (if is not the referred above) plus the "Apache Cordova" words: this commonly offers information about how to solve many errors, since the Apache Cordova community exceeds this support forum.



ccc_fish
Hello, David! Thank you for your reply, I will look for other reasons.

DecSoft

Hello Chen,

If you copy here the console log message we will try to help you too! You can remove some possible private information if you wanted: or just look if some error message is provided... in addition to the "Source and destination must not be the same"...

However, if certainly the console ends with that message... that is the message that we must try to search plus the "Apache Cordova" words, so search something like "Source and destination must not be the same Apache Cordova".

Commonly we find the solution in that way... as I refer above, the Apache Cordova community is great and exceeds this forum, of course. So that's what I can say right now...



ccc_fish
Hello, David! Here is the running process:


DecSoft

Hello Chen,

So certainly the console error message is quite rare, in my experience: Cordova produces error messages too much descriptives, commonly more than one message, because a "trace of the error" is included. Maybe this can be a good answer to read... the issue is quite recent, and, exactly what you get and with the Cordova Android version that you use too.

Apparently it's a random bug (don't occur here in my computer with the same Cordova Android version) in Cordova Android 8.0.0, and, the proposed solution is to downgrade Cordova Android. What you can do is to edit the BAT file that you are using and replace the below:

Of course it's not the best solution, so, in your place I will continue investigating about that "random" problem in Apache Cordova... maybe there is another better solution, since the above mean that you must edit the BAT file if change. Anyway, try to edit the BAT file at least one time... so you can see if the app can be compiled with that Cordova Android version...



ccc_fish
Hello, David! Thank you for your help, I will try the method you provided first, I will reply you later.

Harald Schneider
Maybe upgrading to cordova 9.0.0 will fix it.

ccc_fish
Hello, David! I spent a night reconfiguring the environment and finally succeeded. thank you for your support!

Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.