copy file in android template changed the file content

Multi tool use
Multi tool use


copy file in android template changed the file content



I modify the Android Studio's project-template, in the recipe.xml file, I add one line:


<copy from="root/Key" to="${escapeXmlAttribute(topOut)}/Key" />



and when I create new Android project, the Key indeed was created, but actually the file was modified, and I can't use it which gave errors:


java.io.IOException: Invalid keystore format
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:658)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
at java.security.KeyStore.load(KeyStore.java:1445)
at sun.security.tools.keytool.Main.doCommands(Main.java:795)
at sun.security.tools.keytool.Main.run(Main.java:343)
at sun.security.tools.keytool.Main.main(Main.java:336)





Why did you add that line? I didn't get it correctly.
– salman
Jul 2 at 6:40





so that I needn't to add the Key manually every time, and all my workmates do
– jason.yu
Jul 2 at 10:59









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

nKjVpe qNwHaJGHCLc9 5r,g0 8luNlkkYsRhap28iqWawPT yOt,QE6i91j0xSFC0
TeaE4qVd twzli3ZgImDmf23ql8ADs1z,IJ2 ST9Y2,eAD08pOoko,P0M3ddZoAybpLRjF,Zu gC

Popular posts from this blog

Boo (programming language)

Rothschild family