keytool error :java.io.IoException:Incorrect AVA format

匿名 (未验证) 提交于 2019-12-03 02:44:02

问题:

I am new to Android development; when I have been trying to sign the application I have got the following error. Can anyone help me on this issue?

keytool error :java.io.IoException:Incorrect AVA format 

I have found some solution on the forums, for instance I need to run the debug.keystore but I was not successful.

回答1:

Probably you entered illegal character(something like ,(comma)) in a field for Name, Organization or somewhere else.

Of course if you really want some charachter can be escaped with \ sign



回答2:

I have faced an error while trying to export a signed .apk file with Eclipse ADT. The error was same like your error. In my case, I used a + sign before the country code. Removing the + sign from this name fixed the problem and allowed me to fully export my signed .apk file. Also, this error can occur when use comma,slash, semi-colon, quotation.



回答3:

You tried to use special characters while exporting apk.You can't use these special characters in any field shown while creating the apk. The special character set includes:

  • Commas (,)
  • Addition symbol (+)
  • Quotation mark (")
  • Back-slash ("\")
  • Angled brackets(< and >)
  • Semi-colon (;)


回答4:

I came on this error when I did not set the distinguished name option at all. This was corrected by setting the option to a validly formatted string.

this command failed with the AVA format exception: (line breaks added for legibility)

C:\Program Files\Java\jdk1.6.0_45\jre\bin>keytool  -genkey -v -dname PatrickTaylor -validity 10000  -keystore C:\drops\patrickkeystore  

this command completed successfully:

C:\Program Files\Java\jdk1.6.0_45\jre\bin>keytool  -genkey -v -dname PatrickTaylor -validity 10000  -keystore C:\drops\patrickkeystore  -dname "cn=Patrick Taylor, ou=engineering, o=company, c=US" 


回答5:

I got the same problem, reason is invalid character. just " + " mark on country code also be a reason to get an error. be simple that's the way in here.



回答6:

I solved these Exception by changing the country code:

+91 to India



回答7:

this "Probably you entered illegal character(something like ,(comma)) in a field for Name, Organization or somewhere else. " worked for me. I had a comma on the state or province. please mark this answer by rule as the answer; as + in +91 is a special character.



回答8:

It's simple. You only need remove "+" on country code.

Example: +62 to 62.



回答9:

Can't google say "Invalid Character". Instead, they say "Incorret AVA format" Strip away any non alphanumeric characters, no accents and no weird letters.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!