我一直在尝试将我的活动转换为片段,并且在此过程中,我在某个文件中搞砸了一些东西。我收到了找不到我的 R.java 文件的错误,我检查了我的所有库,但它们的 xml 文件中没有错误。我的应用程序 xml 文件中也没有错误。嗯,可能有,但他们没有出现。
我已经多次清理我的项目,并重新启动了 Eclipse,但似乎没有任何效果。我的 xml 文件中没有出现任何错误,所以你们都有解决这个问题的想法吗?
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.fotolife.app"
android:versionCode="1"
android:versionName="1" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-feature android:name="android.hardware.camera" />
<application
android:icon="@drawable/icon_retina"
android:label="The Foto Life"
android:screenOrientation="portrait" >
<uses-library
android:name="com.google.android.maps"
android:required="true" />
<activity
android:name=".Splash"
android:exported="true"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Login"
android:excludeFromRecents="true"
android:exported="false"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="com.fotolife.app.LOGIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".MainView"
android:exported="false"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="com.fotolife.app.MAINVIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".Menu"
android:exported="false"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="com.fotolife.app.MENU" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".Upload"
android:configChanges="keyboardHidden|orientation|screenSize"
android:exported="false"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="com.fotolife.app.UPLOAD" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".Map"
android:exported="false"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="com.fotolife.app.MAPS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".AndroidCustomGalleryActivity"
android:configChanges="keyboardHidden|orientation"
android:exported="false"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="com.fotolife.app.GALLERY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".EditGallery"
android:configChanges="keyboardHidden|orientation"
android:exported="false"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter>
<action android:name="com.fotolife.app.GALLERY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".UploadQueue"
android:configChanges="keyboardHidden|orientation"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar"
android:windowSoftInputMode="adjustPan" >
</activity>
<activity
android:name="com.aviary.android.feather.FeatherActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:hardwareAccelerated="true"
android:largeHeap="true"
android:screenOrientation="portrait"
android:theme="@style/FeatherDefaultTheme.Custom" />
<receiver
android:name="com.aviary.android.feather.receivers.FeatherSystemReceiver"
android:exported="true"
android:process=":feather_system_receiver" >
<intent-filter>
<action android:name="android.intent.action.PACKAGE_ADDED" />
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<action android:name="android.intent.action.PACKAGE_REPLACED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<provider
android:name="com.aviary.android.feather.library.providers.FeatherContentProvider"
android:authorities="com.fotolife.app.upload"
android:exported="false" >
</provider>
<meta-data
android:name="ADMOB_PUBLISHER_ID"
android:value="a150e7b057ac915" />
</application>
</manifest>
我的清单中有一个标签,我可以四处移动并且不会出错。你能告诉我它的正确位置吗?