1 Problem Description:
For this piece of code:
<activity android:name= ". Fragament.fragment_bulter"/>
<activity android:name= ". Fragament.fragment_girl"/>
<activity android:name= ". Fragament.fragment_user"/>
<activity android:name= ". Fragament.fragment_wechat" >
</activity>
AndroidManifest.xml 中出现提示:‘com.example.cheung.……‘ is not assignable to Android.app.Activity Manifest XML
Workaround:
returning to view the Fragment_bulter,fragment_girl,fragment_user,fragment_wechat function definition is actually inherited by fragment, which means that The code actually adds fragment to the activity, which naturally makes an error.
Workaround one: To retain several functions for fragment ,则
theAndroidManifest.xml中直接删掉这段即可
Workaround two: To AndroidManifest.xml
retain several functions as activity, the
public class Fragment_bulter extends fragment{...}
Switch
fragmentactivity {......}
Result: Resolved
Error message: ' ... ' is not assignable to Android.app.Activity Manifest XML