hmahdavi921
چهارشنبه 28 مرداد 1394, 08:32 صبح
با سلام
من یک پروژه جدید در eclipse ایجاد کردم .به هیچ کدی یا تنضیماتی دست نزدم .همین اول کار چند تا خطا گرفته:
1.Multiple annotations found at this line:
- The markup in the document following the root element must be well-formed.
- error: Error parsing XML: junk after document element
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<view xmlns:android="http://schemas.android.com/apk/res/android"
class="android.support.v7.internal.widget.ActionBarView$H omeView"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="?attr/actionBarItemBackground"/>
<ImageView android:id="@+id/up"
android:src="?attr/homeAsUpIndicator"
android:layout_gravity="center_vertical|left"
android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="-8dip" />
<ImageView android:id="@id/home"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="8dip"
android:layout_marginTop="@dimen/abc_action_bar_icon_vertical_padding"
android:layout_marginBottom="@dimen/abc_action_bar_icon_vertical_padding"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:scaleType="fitCenter"/>
</view>
2.error: Error: No resource found that matches the given name (at 'contentDescription' with value '@string/id').
برای این خطا در فایل string.xml یک استرینگ با نام id ایجاد کردم اما خطا رفع نشد.
دوستان اگر اطلاعاتی در این مورد دارید لطفا راهنمایی بفرمائید
من یک پروژه جدید در eclipse ایجاد کردم .به هیچ کدی یا تنضیماتی دست نزدم .همین اول کار چند تا خطا گرفته:
1.Multiple annotations found at this line:
- The markup in the document following the root element must be well-formed.
- error: Error parsing XML: junk after document element
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<view xmlns:android="http://schemas.android.com/apk/res/android"
class="android.support.v7.internal.widget.ActionBarView$H omeView"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="?attr/actionBarItemBackground"/>
<ImageView android:id="@+id/up"
android:src="?attr/homeAsUpIndicator"
android:layout_gravity="center_vertical|left"
android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="-8dip" />
<ImageView android:id="@id/home"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="8dip"
android:layout_marginTop="@dimen/abc_action_bar_icon_vertical_padding"
android:layout_marginBottom="@dimen/abc_action_bar_icon_vertical_padding"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:scaleType="fitCenter"/>
</view>
2.error: Error: No resource found that matches the given name (at 'contentDescription' with value '@string/id').
برای این خطا در فایل string.xml یک استرینگ با نام id ایجاد کردم اما خطا رفع نشد.
دوستان اگر اطلاعاتی در این مورد دارید لطفا راهنمایی بفرمائید