Comments (8)
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.
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.
can you test since 4d23e0f ?
from php-apk-parser.
@achretien 4d23e0f fixed the issue for me
composer require tufanbarisyildirim/php-apk-parser:dev-master#4d23e0f87b7e2db77b7f9d7d69f9da08a22b9e1c
from php-apk-parser.
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.
In my case all works well with the last versión.
from php-apk-parser.
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.
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)
- Question - Fastest way to check if a file is apk
- how to use without composer? is it possible? HOT 2
- PHP 8.1 compatibility issue
- Extracting XML with the strings decoded HOT 2
- update packagist.org HOT 1
- I can translate the code to Portuguese HOT 1
- Error Facebook HOT 2
- Error loading the apk google calls and google contacts HOT 2
- Getting path of icon
- Can not parse if AndroidManifest.xml file was encoded? HOT 1
- ZipArchive::getStream(): Invalid or uninitialized Zip object HOT 1
- Uncaught exception 'Exception' with message 'Unrecognized tag code '100' at offset 39368'
- This repo depends on java environment. I found one way, faster, high performance! Cool! HOT 1
- redundent utf8_encode in XML parser HOT 1
- Url Parse HOT 2
- Read resources by key
- getResources return nil in new android version HOT 6
- How to get Target SDK version?
- Unrecognized tag code '0' at offset 41852 HOT 1
- Composer version does not detect api30 (code is alorder than new code here) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-apk-parser.