Git Product home page Git Product logo

Comments (8)

ronzyfonzy avatar ronzyfonzy commented on May 20, 2024 3

Have the same problem after building with AndroidStudio 3.0. Tested out 4d23e0f and I'm getting

Unrecognized tag code '0' at offset 10400

from php-apk-parser.

bealebe avatar bealebe commented on May 20, 2024 2

Just wanted to share how I resolved this.

The AndroidManifest.xml actually had a syntax error in it. The APK still would build and run on a device, but would break here when uploading because the XML syntax was bad.

Hopefully this will help someone!

from php-apk-parser.

achretien avatar achretien commented on May 20, 2024 1

can you test since 4d23e0f ?

from php-apk-parser.

peterchaula avatar peterchaula commented on May 20, 2024

@achretien 4d23e0f fixed the issue for me

composer require tufanbarisyildirim/php-apk-parser:dev-master#4d23e0f87b7e2db77b7f9d7d69f9da08a22b9e1c

from php-apk-parser.

WebSabaki avatar WebSabaki commented on May 20, 2024

Hello. I face similar issues with latest version:

Unrecognized tag code '0' at offset 10400

or

Unrecognized tag code '100' at offset 10288

from php-apk-parser.

Mutalistik avatar Mutalistik commented on May 20, 2024

In my case all works well with the last versión.

from php-apk-parser.

ronzyfonzy avatar ronzyfonzy commented on May 20, 2024

Tested again (with the 4d23e0f) and still getting error:

Fatal error: Uncaught exception 'Exception' with message 'Unrecognized tag code '0' at offset 9436' in /vendor/tufanbarisyildirim/p
hp-apk-parser/lib/ApkParser/XmlParser.php:194
Stack trace:
#0 /vendor/tufanbarisyildirim/php-apk-parser/lib/ApkParser/XmlParser.php(330): ApkParser\XmlParser->decompress()
#1 /vendor/tufanbarisyildirim/php-apk-parser/lib/ApkParser/XmlParser.php(345): ApkParser\XmlParser->getXmlString()
#2 /vendor/tufanbarisyildirim/php-apk-parser/lib/ApkParser/Manifest.php(156): ApkParser\XmlParser->getXmlObject('\\ApkParser\\Mani.
..')
#3 /vendor/tufanbarisyildirim/php-apk-parser/lib/ApkParser/Manifest.php(108): ApkParser\Manifest->getXmlObject()
#4 /vendor/tufanbarisyildirim/php-apk-parser/lib/ApkParser/Manifest.php(74): ApkParser\Manifest->getAttribute('versionName')
#5 /v in /vendor/tufanbarisyildirim/php-apk-parser/lib/ApkParser/XmlParser.php on line 194

I ran this code:

try{
   $apk = new \ApkParser\Parser($apk_path);
} catch(Exception $e){
   print_r($e);
}

$apk->getManifest()->getVersionName(); // <-- The error happens here

from php-apk-parser.

GustavoEmmel avatar GustavoEmmel commented on May 20, 2024

Just wanted to share how I resolved this.

The AndroidManifest.xml actually had a syntax error in it. The APK still would build and run on a device, but would break here when uploading because the XML syntax was bad.

Hopefully this will help someone!

the same happens to me, there was a lost [ on manifest.
Apk still building and running, but show to error above when parsing.

from php-apk-parser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.