yoyoz Posted October 25, 2011 Share Posted October 25, 2011 Bonjour à tous, ces jours ci, je veux reuploader une nouvelle version d'un package sur le market , et je me tapes cette erreur: The file is invalid: W/ResourceType( 9382): Failure getting entry for 0x7f050000 (t=4 e=0) in package 0 (error -75) ERROR getting 'android:icon' attribute: attribute is not a string value J'ai cherché sur le net, et la plupart disent qu'il s'agit du android:icon="@drawable/icon" qui pointe vers un icon d'android et non du repertoire drawable. Pour info, mon icon.png est bien présent dans le rep res/drawable. Perso, ce n'est pas mon cas. Je suis donc dans l'impossibilité de continuer, alors si vous avez une idée, je suis preneur. Ci joint mon manifest.xml, et merci d'avance à ceux qui auront la réponse. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="fr.free.ynizon.tarot" android:versionCode="16" android:versionName="2.4"> <application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true" > <activity android:name=".StartupActivity" android:screenOrientation="portrait" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".MainActivity" android:screenOrientation="portrait" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name=".LoadActivity" android:screenOrientation="portrait" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name=".ImportContactsActivity" android:screenOrientation="portrait" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name=".GraphiqueActivity" android:screenOrientation="portrait" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name=".NouvellePartieActivity" android:screenOrientation="portrait" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name=".JoueurActivity" android:screenOrientation="portrait" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name=".PrefActivity" android:screenOrientation="portrait" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name=".ContratActivity" android:screenOrientation="portrait" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name=".AnnonceActivity" android:screenOrientation="portrait" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> </application> <uses-sdk android:minSdkVersion="4" /> <uses-permission android:name="android.permission.READ_CONTACTS"></uses-permission> </manifest> Link to comment Share on other sites More sharing options...
Vicnet31 Posted October 26, 2011 Share Posted October 26, 2011 Pas trop d'idée sur le sujet. Visiblement, ce n'est pas le 1er upload donc il n'y a pas de raison que ca tombe en panne... Sauf modifications réalisées entre temps. Est-ce que tu as changé de répertoire de compil ? Est-ce que icon.png est bien en conf ? Est-ce que lorsque tu install l'appli sur l'émulateur, l'icone est le bon ? Est-ce que le fichier icon.png est lisibible ? Sur mon appli, j'ai créé différentes tailles d'icones comme préconisées par google: hdpi, mdpi et ldpi qui se trouve dans les répertoires correspondants. Est-ce que la politique de google a changé ? Link to comment Share on other sites More sharing options...
yoyoz Posted October 27, 2011 Author Share Posted October 27, 2011 L'icone n'a pas changé et est encore lisible. L'appli marche sur mon tel et sur l'emul. J'ai rien changé à ma structure . J'ai juste modifié qq variables. Pas de chgt de rep de compil. Tu as mis quelles taille d'icone ? Link to comment Share on other sites More sharing options...
Vicnet31 Posted October 28, 2011 Share Posted October 28, 2011 Salut, Pour les icones, j'ai suivi la page ici: http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html Et j'utilise un script Gimp qui les fabrique tout seul (voir mon blog). Sur une autres applis, à laquelle je participe, l'icon est définit dans drawable mais aussi dans drawable.xxx. A essayer, ca ne coute pas cher pour faire le test. Sinon, je seche... Link to comment Share on other sites More sharing options...
yoyoz Posted November 1, 2011 Author Share Posted November 1, 2011 Je viens de comprendre le pb, et je pense que c'est google qui s'est planté. Mon appli étant multi langue, j'ai les fichiers suivants: res/values-fr/strings.xml res/values-en/strings.xml Le market me pete donc une erreur si je n'ai pas aussi res/values/strings.xml j'ai donc rajouté un fichier par défaut et ca marche. Bizarre, non ? Link to comment Share on other sites More sharing options...
Vicnet31 Posted November 2, 2011 Share Posted November 2, 2011 Salut, Donc c'etait pas sur l'icone qu'il y avait un pb mais sur android:label="@string/app_name" Ceci dit, d'accord avec toi que c'est bizarre. Je ne sais pas si string.xml par defaut est indiqué comme obligatoire pour le market... Link to comment Share on other sites More sharing options...
chpil Posted November 2, 2011 Share Posted November 2, 2011 Ce que semble vérifier le market, c'est que ton application puisse s'exécuter sur tous les appareils. Ce qui n'était pas le cas, puisque tu n'avais des ressources textuelles définies que pour l'anglais et le français: ton application n'aurait pas fonctionné sur un appareil configuré en espagnol, par ex. Link to comment Share on other sites More sharing options...
yoyoz Posted November 4, 2011 Author Share Posted November 4, 2011 a ok. Merci pour l'info. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.