dvaoru / ApkRenamer

This is a program to change an app name, a package name and an icon in Android apk package.
Apache License 2.0
178 stars 22 forks source link

Error: Attribute name "update" associated with an element type "We" must be followed by the ' = ' character. #1

Closed 1322739583 closed 2 years ago

1322739583 commented 2 years ago

OS: Manjaro 21.2.4 Qonos Kernel: x86_64 Linux 5.10.102-1-MANJARO Shell: zsh 5.8.1 DE: KDE 5.91.0 / Plasma 5.24.2

jdk is oracle jdk 1.8。

When I run with java -jar renamer.jar ,the error occur.

% java -jar renamer.jar  

Enter a new name for the app:
test1.apk
Enter a new package name:
com.test.newapp1
 d /home/xzh/Downloads/Compressed/ApkRenamer/in/mxbfq.apk -f  -o /home/xzh/Downloads/Compressed/ApkRenamer/temp
I: Using Apktool 2.4.0 on mxbfq.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
S: WARNING: Could not write to (/home/xzh/.local/share/apktool/framework), using /tmp instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
I: Loading resource table from file: /tmp/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
[Fatal Error] strings.xml:1034:71: Attribute name "update" associated with an element type "We" must be followed by the ' = ' character.
Exception in thread "main" java.lang.NullPointerException
        at ru.gavrikov.Renamer.replaceStrings(Main.java:545)
        at ru.gavrikov.Renamer.changeStrings(Main.java:538)
        at ru.gavrikov.Renamer.modifySources(Main.java:445)
        at ru.gavrikov.Renamer.run(Main.java:114)
dvaoru commented 2 years ago

Hello. Please try to set the new name without the ".apk" part. Best regards Dvaoru

пт, 25 мар. 2022 г. в 08:30, 1322739583 @.***>:

OS: Manjaro 21.2.4 Qonos Kernel: x86_64 Linux 5.10.102-1-MANJARO Shell: zsh 5.8.1 DE: KDE 5.91.0 / Plasma 5.24.2

jdk is oracle jdk 1.8。

When I run with java -jar renamer.jar ,the error occur.

% java -jar renamer.jar

Enter a new name for the app:

test1.apk

Enter a new package name:

com.test.newapp1

d /home/xzh/Downloads/Compressed/ApkRenamer/in/mxbfq.apk -f -o /home/xzh/Downloads/Compressed/ApkRenamer/temp

I: Using Apktool 2.4.0 on mxbfq.apk

I: Loading resource table...

I: Decoding AndroidManifest.xml with resources...

S: WARNING: Could not write to (/home/xzh/.local/share/apktool/framework), using /tmp instead...

S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable

I: Loading resource table from file: /tmp/1.apk

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values / XMLs...

I: Baksmaling classes.dex...

I: Baksmaling classes2.dex...

I: Copying assets and libs...

I: Copying unknown files...

I: Copying original files...

[Fatal Error] strings.xml:1034:71: Attribute name "update" associated with an element type "We" must be followed by the ' = ' character.

Exception in thread "main" java.lang.NullPointerException

    at ru.gavrikov.Renamer.replaceStrings(Main.java:545)

    at ru.gavrikov.Renamer.changeStrings(Main.java:538)

    at ru.gavrikov.Renamer.modifySources(Main.java:445)

    at ru.gavrikov.Renamer.run(Main.java:114)

— Reply to this email directly, view it on GitHub https://github.com/dvaoru/ApkRenamer/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANP44QQAVPL32OEOHQP2MULVBVFOZANCNFSM5RTEQ5AA . You are receiving this because you are subscribed to this thread.Message ID: @.***>