Je peux installer mon ** - unaligned.apk sur mon appareil. Mais je ne peux pas installer mon apk libérable. Je reçois:Essayer d'installer * .apk throws ParseError
ParseError: Parsing the package...
Comment cela peut-il être?
Comment puis-je construire mon application:
call cordova plugin add org.apache.cordova.device
call cordova plugin add org.apache.cordova.splashscreen
call cordova platform add android
call cordova build android call cordova build android --release
call jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my.keystore -storepass **** platforms/android/ant-build/MainActivity-release-unsigned.apk myalias
call jarsigner -verify -verbose -certs platforms/android/ant-build/MainActivity-release-unsigned.apk zipalign
-v 4 platforms/android/ant-build/MainActivity-release-unsigned.apk release.apk
mon config.xml ressemble à:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="com.myapp.test" version="2.0.1">
<name>MyApp</name>
<author>Me</author>
<preference name="AutoHideSplashScreen" value="false" />
<feature name="http://api.phonegap.com/1.0/device"/>
<feature name="http://api.phonegap.com/1.0/network"/>
<feature name="http://api.phonegap.com/1.0/file"/>
<feature name="http://api.phonegap.com/2.0/globalization"/>
<content src="index.html"/>
<access origin="*"/>
<preference name="android-minSdkVersion" value="17" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="10000" />
<platform name="android">
<splash src="android/splash/land/hdpi.png" density="land-hdpi"/>
<splash src="android/splash/land/hdpi.png" density="land-ldpi"/>
<splash src="android/splash/land/hdpi.png" density="land-mdpi"/>
<splash src="android/splash/land/hdpi.png" density="land-xhdpi"/>
<splash src="android/splash/port/hdpi.png" density="port-hdpi"/>
<splash src="android/splash/port/ldpi.png" density="port-ldpi"/>
<splash src="android/splash/port/mdpi.png" density="port-mdpi"/>
<splash src="android/splash/port/xhdpi.png" density="port-xhdpi"/>
<icon src="android/ldpi.png" density="ldpi" />
<icon src="android/mdpi.png" density="mdpi" />
<icon src="android/hdpi.png" density="hdpi" />
<icon src="android/xhdpi.png" density="xhdpi" />
</platform>
Le AndroidManifest.xml généré a le targetSdk = 21. Ceci est android 5.0.1 .. Mon appareil est Android 5.0. Puis-je spécifier le targetSdk dans mon fichier config.xml?
Quelqu'un de votre nom de fichier commence par _ (soulignement), voulez vérifier que http://stackoverflow.com/a/22618261/1225413 –
Non. Je peux installer le * unaligned.apk. Le problème est avec le zipaligned. – OOPDeveloper89