beyen
-
13 mai 2016 à 11:59
BunoCS
Messages postés15495Date d'inscriptionlundi 11 juillet 2005StatutModérateurDernière intervention23 octobre 2024
-
13 mai 2016 à 17:26
Bonjour,
je veux développer une app sous android et j'ai un problème: lorsque je Click sur le bouton inscrire l’émulateur s’arrête. Voici logCat
05-13 09:58:48.796: D/AndroidRuntime(335): Shutting down VM
05-13 09:58:48.796: W/dalvikvm(335): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
05-13 09:58:48.845: E/AndroidRuntime(335): FATAL EXCEPTION: main
05-13 09:58:48.845: E/AndroidRuntime(335): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.asso/com.example.asso.Inscription}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
05-13 09:58:48.845: E/AndroidRuntime(335): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.os.Handler.dispatchMessage(Handler.java:99)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.os.Looper.loop(Looper.java:123)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.app.ActivityThread.main(ActivityThread.java:4627)
05-13 09:58:48.845: E/AndroidRuntime(335): at java.lang.reflect.Method.invokeNative(Native Method)
05-13 09:58:48.845: E/AndroidRuntime(335): at java.lang.reflect.Method.invoke(Method.java:521)
05-13 09:58:48.845: E/AndroidRuntime(335): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-13 09:58:48.845: E/AndroidRuntime(335): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-13 09:58:48.845: E/AndroidRuntime(335): at dalvik.system.NativeStart.main(Native Method)
05-13 09:58:48.845: E/AndroidRuntime(335): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
05-13 09:58:48.845: E/AndroidRuntime(335): at android.view.LayoutInflater.createView(LayoutInflater.java:513)
05-13 09:58:48.845: E/AndroidRuntime(335): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.view.LayoutInflater.inflate(LayoutInflater.java:385)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
05-13 09:58:48.845: E/AndroidRuntime(335): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.app.Activity.setContentView(Activity.java:1647)
05-13 09:58:48.845: E/AndroidRuntime(335): at com.example.asso.Inscription.onCreate(Inscription.java:41)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
05-13 09:58:48.845: E/AndroidRuntime(335): ... 11 more
05-13 09:58:48.845: E/AndroidRuntime(335): Caused by: java.lang.reflect.InvocationTargetException
05-13 09:58:48.845: E/AndroidRuntime(335): at android.widget.RelativeLayout.<init>(RelativeLayout.java:170)
05-13 09:58:48.845: E/AndroidRuntime(335): at java.lang.reflect.Constructor.constructNative(Native Method)
05-13 09:58:48.845: E/AndroidRuntime(335): at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.view.LayoutInflater.createView(LayoutInflater.java:500)
05-13 09:58:48.845: E/AndroidRuntime(335): ... 21 more
05-13 09:58:48.845: E/AndroidRuntime(335): Caused by: android.content.res.Resources$NotFoundException: File res/drawable-hdpi/title_bar_shadow.9.png from drawable resource ID #0x7f050000
05-13 09:58:48.845: E/AndroidRuntime(335): at android.content.res.Resources.loadDrawable(Resources.java:1714)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.view.View.<init>(View.java:1885)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.view.View.<init>(View.java:1834)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.view.ViewGroup.<init>(ViewGroup.java:285)
05-13 09:58:48.845: E/AndroidRuntime(335): ... 25 more
05-13 09:58:48.845: E/AndroidRuntime(335): Caused by: java.io.FileNotFoundException: res/drawable-hdpi/title_bar_shadow.9.png
05-13 09:58:48.845: E/AndroidRuntime(335): at android.content.res.AssetManager.openNonAssetNative(Native Method)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.content.res.AssetManager.openNonAsset(AssetManager.java:405)
05-13 09:58:48.845: E/AndroidRuntime(335): at android.content.res.Resources.loadDrawable(Resources.java:1706)
05-13 09:58:48.845: E/AndroidRuntime(335): ... 29 more
BunoCS
Messages postés15495Date d'inscriptionlundi 11 juillet 2005StatutModérateurDernière intervention23 octobre 20243 909 13 mai 2016 à 17:26
Hello,
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.asso/com.example.asso.Inscription}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
Ton fichier de Layout associé à l'Activity Inscription est mal formatté ou bien tu fais un findViewByID() sur un ID qui n'existe pas