Why Ionic, Cordova, Angular2 generates long file names?

I’m developing an app, using ionic2. Cannot copy app folder to a sub folder due to long file names in this directory:

\platforms\android\build\tmp\expandedArchives\classes.jar_dx4xwqv13b0utt214l22wsbbs\com\google\protobuf

One of the file names is:

java_com_google_android_gmscore_dev_policy_sets__3p_monolithic_raw_pre_munge_rollup_67e347e9GeneratedExtensionRegistryLite$Loader.class

How can I prevent this?

You can’t.

Delete the platforms directory and run ionic cordova prepare after copying the folder. This should regenerate everything in it.

Thanks, that makes perfect sense. The only issue now is I cannot load the project to visual studio, however VSCode does not complain.