Android - Resources$NotFoundException

0

Cześć,
Zaimportowałem stary projekt apki androidowej. Ma to chyba z 5 lat, ale udało się pokonać wszystkie przeciwności związane z importem. Jednak przy próbie odpalenia apki na Genymotion dostaję:

java.lang.RuntimeException: Unable to start activity ComponentInfo{...}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020002

Wywołanie uderza na samym początku wywołania do głównej activity:

 @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_list) //tutaj wyjatek sypie;

Definicja activity_list: (wykomentowałem obiekty "podejrzane" o robienie problemów, ale dalej to nie śmiga). Ktoś ma jakiś pomysł?
Dodam jeszcze, iż jest to o tyle ciekawe, że apka jest w Sklepie Play od kilku lat i nikt nie ma problemow z jej działaniem, co by wskazywało na problem z IDE(?)

<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:id="@+id/LinLayAll"
tools:context="info.linuxpl.efem.buyme.app.ListActivity">
<!--android:background="@color/backDark"-->
<TableLayout
    android:id="@+id/tableLayoutStart"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:padding="0dp">
    <TableRow
        android:id="@+id/tableRowStart"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        tools:ignore="UselessParent">
        <!--android:background="@color/mintDark"-->

        <ImageView
            android:layout_height="fill_parent"
            android:layout_width="wrap_content"

            android:padding="-15dp"
            android:contentDescription="starting icon"
            tools:ignore="HardcodedText" />
        <!--android:src="@drawable/nowy"-->
        <TextView
            android:text="@string/newList"
            android:layout_width="fill_parent"
            android:onClick="showListAddingDialog"
            android:layout_height="@dimen/tv_height"
            android:gravity="center_vertical|start"
            android:clickable="true"
            android:id="@+id/tvNewNote"></TextView>
            <!--style="@style/tv_add"-->

    </TableRow>
</TableLayout>

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <LinearLayout
            android:id="@+id/LinLay"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">
        </LinearLayout>
    </ScrollView>
</LinearLayout>
0

Odpal to na normalnym telefonie albo na emulatorze od Google. Tam też jest problem?

0

Znalazłem tego resourca (7f020002) przeglądając klasę R - okazało sie, że był to plik graficzny. Pomimo, że był na dysku a wskazanie go niego też było dobre jakimś cudem go nie widziało. W każdym razie problem rozwiązany.

0

xxxxxxxx

1 użytkowników online, w tym zalogowanych: 0, gości: 1