从网上down下来的安卓源码,导入后有报错。。基础太渣了,麻烦大神看看。。。
下面是报错的那一行代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
>
<ImageView
android:id="@+id/dw_logo"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/dw_logo" />/*就是这个地方报错说:error: Error: No resource found that matches the given name (at 'src' with value '@drawable/
dw_logo').*/
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:background="@drawable/border"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
>
<TextView
android:id="@+id/txtcopy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/copy"
android:textSize="18dp"
/>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:layout_marginTop="10dp"
>
<TextView
android:id="@+id/txtversion"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/version"
/>
</LinearLayout>
</LinearLayout>
下面是报错:
[2016-05-04 09:23:51 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\layout\attendance.xml:31: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/avatar').
[2016-05-04 09:23:51 - TAOHAttendance]
[2016-05-04 09:23:51 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\layout\synchronous.xml:13: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/dw_logo').
[2016-05-04 09:23:51 - TAOHAttendance]
[2016-05-04 09:23:51 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:3: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_first').
[2016-05-04 09:23:51 - TAOHAttendance]
[2016-05-04 09:23:51 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_second').
[2016-05-04 09:23:51 - TAOHAttendance]
[2016-05-04 09:23:51 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:5: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_third').
[2016-05-04 09:23:51 - TAOHAttendance]
[2016-05-04 09:23:51 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:6: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_forth').
[2016-05-04 09:23:51 - TAOHAttendance]
[2016-05-04 09:23:51 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_fifth').
[2016-05-04 09:23:51 - TAOHAttendance]
[2016-05-04 09:23:51 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:8: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_sixth').
[2016-05-04 09:23:51 - TAOHAttendance]
[2016-05-04 09:23:51 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:9: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_seventh').
[2016-05-04 09:23:51 - TAOHAttendance]
[2016-05-04 09:23:51 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:10: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_eighth').
[2016-05-04 09:23:51 - TAOHAttendance]
[2016-05-04 09:23:51 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\drawable\reprat_bg_for_login.xml:2: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/dw_transparent_bg').
[2016-05-04 09:23:51 - TAOHAttendance]
[2016-05-04 09:24:39 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\layout\about.xml:13: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/dw_logo').
[2016-05-04 09:24:39 - TAOHAttendance]
[2016-05-04 09:24:39 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\layout\attendance.xml:31: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/avatar').
[2016-05-04 09:24:39 - TAOHAttendance]
[2016-05-04 09:24:39 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\layout\synchronous.xml:13: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/dw_logo').
[2016-05-04 09:24:39 - TAOHAttendance]
[2016-05-04 09:24:39 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:3: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_first').
[2016-05-04 09:24:39 - TAOHAttendance]
[2016-05-04 09:24:39 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_second').
[2016-05-04 09:24:39 - TAOHAttendance]
[2016-05-04 09:24:39 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:5: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_third').
[2016-05-04 09:24:39 - TAOHAttendance]
[2016-05-04 09:24:39 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:6: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_forth').
[2016-05-04 09:24:39 - TAOHAttendance]
[2016-05-04 09:24:39 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_fifth').
[2016-05-04 09:24:39 - TAOHAttendance]
[2016-05-04 09:24:39 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:8: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_sixth').
[2016-05-04 09:24:39 - TAOHAttendance]
[2016-05-04 09:24:39 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:9: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_seventh').
[2016-05-04 09:24:39 - TAOHAttendance]
[2016-05-04 09:24:39 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\anim\loading_round.xml:10: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/th_eighth').
[2016-05-04 09:24:39 - TAOHAttendance]
[2016-05-04 09:24:39 - TAOHAttendance] C:\Users\Administrator\Downloads\Attendance\03.ANDROID\TAOHAttendance\res\drawable\reprat_bg_for_login.xml:2: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/dw_transparent_bg').
[2016-05-04 09:24:39 - TAOHAttendance]