Soru & Cevap

Eclipse hatasımı?

04.06.2014 - 04:01

eclipsede yeni proje açıp tasarımı yapıyorum kod buloğuna herhangi bişeye karışmadan çalıştırıyorum uygulama ne yazıkki durdu hatası alıyorum tasarımın kod bulogu aşağıda. ekran alıntısıda resimdedir.

 

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#330000"
    android:gravity="center_vertical"
    tools:context="${packageName}.${activityClass}" >

    <ImageButton
        android:id="@+id/btnyenile"
        android:layout_width="36dp"
        android:layout_height="31dp"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:src="@android:drawable/ic_menu_set_as" />

    <ImageButton
        android:id="@+id/btncikis"
        android:layout_width="35dp"
        android:layout_height="30dp"
        android:layout_alignBottom="@+id/btnyenile"
        android:layout_alignParentRight="true"
        android:src="@android:drawable/ic_notification_clear_all" />

    <SeekBar
        android:id="@+id/seekBar1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_marginBottom="91dp" />

    <ImageButton
        android:id="@+id/btnileri"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:layout_toRightOf="@+id/btnplay"
        android:layout_weight="0.28"
        android:background="#330000"
        android:src="@drawable/ileri" />

    <ImageButton
        android:id="@+id/btngeri"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_toLeftOf="@+id/btnplay"
        android:layout_weight="0.27"
        android:background="#330000"
        android:src="@drawable/geri" />

    <ListView
        android:id="@+id/listView1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@+id/seekBar1"
        android:layout_alignParentRight="true"
        android:layout_alignParentTop="true"
        android:layout_toRightOf="@+id/btnyenile" >

    </ListView>

    <ImageButton
        android:id="@+id/btnplay"
        android:layout_width="113dp"
        android:layout_height="88dp"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:layout_weight="0.27"
        android:background="@drawable/play" />

</RelativeLayout>

8 Görüntülenme

2 Cevap

Sitedeki sorulara cevap verebilmek için giriş yapın ya da üye olun.

picture-20237-1508932796.jpg
bhdrnsnci
06.06.2014 - 02:05

Manifest.xml dosyanıza, ekledikleriniz için izin vermeniz gerekebilir...

Abdulkadir
06.06.2014 - 03:38
nasıl bir izin verme açıklarmısınız nasıl yapıcam.
Abdulkadir
06.06.2014 - 03:38
nasıl bir izin verme açıklarmısınız nasıl yapıcam.
Bahadır Nişancı
06.06.2014 - 03:55
bu konu hakkında fazla bir bilgim yok aynı sorunla bende karşılaştım. Sorunun manifestte olduğunu öğrendim bir şekilde ekledim. Ama bununla ilgili videolar var.
Abdulkadir
06.06.2014 - 03:57
yardımın için teşekkür ederim.
Bahadır Nişancı
06.06.2014 - 04:04
Sorun çözüldümü?
picture-1372-1408467635.jpg
ahmtbrk
04.06.2014 - 04:08

bundan yorum yapmak zor hatayı komple yazar mısın buraya o kırmızı error kısmını seçip

Abdulkadir
04.06.2014 - 04:37
şöyle bir hata veriyo 06-04 16:36:42.792: D/dalvikvm(4097): Late-enabling CheckJNI 06-04 16:36:42.878: E/Trace(4097): error opening trace file: No such file or directory (2) 06-04 16:36:42.901: V/ActivityThread(4097): Class path: /data/app/abdi72.muzik-1.apk, JNI path: /data/data/abdi72.muzik/lib 06-04 16:36:43.089: D/AndroidRuntime(4097): Shutting down VM 06-04 16:36:43.089: W/dalvikvm(4097): threadid=1: thread exiting with uncaught exception (group=0x40ea82a0) 06-04 16:36:43.097: E/AndroidRuntime(4097): FATAL EXCEPTION: main 06-04 16:36:43.097: E/AndroidRuntime(4097): java.lang.RuntimeException: Unable to start activity ComponentInfo{abdi72.muzik/abdi72.muzik.Main}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' 06-04 16:36:43.097: E/AndroidRuntime(4097): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2070) 06-04 16:36:43.097: E/AndroidRuntime(4097): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2095) 06-04 16:36:43.097: E/AndroidRuntime(4097): at android.app.ActivityThread.access$600(ActivityThread.java:135) 06-04 16:36:43.097: E/AndroidRuntime(4097): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201) 06-04 16:36:43.097: E/AndroidRuntime(4097): at android.os.Handler.dispatchMessage(Handler.java:99) 06-04 16:36:43.097: E/AndroidRuntime(4097): at android.os.Looper.loop(Looper.java:137) 06-04 16:36:43.097: E/AndroidRuntime(4097): at android.app.ActivityThread.main(ActivityThread.java:4849) 06-04 16:36:43.097: E/AndroidRuntime(4097): at java.lang.reflect.Method.invokeNative(Native Method) 06-04 16:36:43.097: E/AndroidRuntime(4097): at java.lang.reflect.Method.invoke(Method.java:511) 06-04 16:36:43.097: E/AndroidRuntime(4097): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795) 06-04 16:36:43.097: E/AndroidRuntime(4097): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562) 06-04 16:36:43.097: E/AndroidRuntime(4097): at dalvik.system.NativeStart.main(Native Method) 06-04 16:36:43.097: E/AndroidRuntime(4097): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' 06-04 16:36:43.097: E/AndroidRuntime(4097): at android.app.ListActivity.onContentChanged(ListActivity.java:243) 06-04 16:36:43.097: E/AndroidRuntime(4097): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:414) 06-04 16:36:43.097: E/AndroidRuntime(4097): at android.app.Activity.setContentView(Activity.java:2087) 06-04 16:36:43.097: E/AndroidRuntime(4097): at abdi72.muzik.Main.onCreate(Main.java:11) 06-04 16:36:43.097: E/AndroidRuntime(4097): at android.app.Activity.performCreate(Activity.java:5236) 06-04 16:36:43.097: E/AndroidRuntime(4097): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082) 06-04 16:36:43.097: E/AndroidRuntime(4097): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2034) 06-04 16:36:43.097: E/AndroidRuntime(4097): ... 11 more