shwenzhang / AndResGuard

proguard resource for Android by wechat team
Apache License 2.0
8.54k stars 1.54k forks source link

`Failed to parse /data/app/vmdl1987242670.tmp/base.apk: AndroidManifest.xml` on Windows only #254

Closed imknown closed 5 years ago

imknown commented 6 years ago

Windows raises the error below but Linux DOES NOT.

adb: failed to install CityMngSystem-1.3.7(23)-20180516-RRPA-YiPaiV137R_7zip_aligned_signed.apk: Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl1987242670.tmp/base.apk: AndroidManifest.xml]

simpleton commented 6 years ago

I'm not very sure, maybe a similar issue with https://github.com/react-community/create-react-native-app/issues/261?

imknown commented 6 years ago

@simpleton Windows-generated App cannot be installed on real phones, and there is no dir like .expo/android-apk-cache.


The assembleRelease works well but the resguardRelease not. Maybe the issue on SevenZip?

simpleton commented 6 years ago

I'm not sure. Maybe u can disable SevenZip flag for debuging.

imknown commented 6 years ago

@simpleton use7zip = false works.

shmet206 commented 5 years ago

hi, can someone please help me with this issue I'm having when trying to install an android apk file using adb. Everything was working and just stopped working recently. I have no clue what changed.

Failure [INSTALL_PARSE_FAILED_NOT_APK: Failed to parse /data/app/vmdl1311252415.tmp/base.apk]

imknown commented 5 years ago

@shmet206 Need more log.

bpstelios10 commented 2 years ago

i usually just clean the project

"clean:android": "cd android && ./gradlew clean && cd ../",
"clean:ios": "cd ios && xcodebuild clean && cd ../",
"clean": "npm run clean:android && npm run clean:ios"
satyammca commented 2 years ago

We are also getting same error while installing via adb install command - adb: failed to install xxxx.apk: Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl1706283596.tmp/base.apk: AndroidManifest.xml]

Please help us to resolve it soon and let me know if you required any further details