XML tag has an empty body
Applies to <activity> tags when you close them with </activity> instead of <activity (rest of code here...) />
Using explicit </activity> means that your <activity> has a body, for example, in this example:
<activity android:name=".SplashActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
While you want something in this direction:
<activity android:name=".MainActivity" android:label="@string/app_name" />
C /> at the end to get rid of these warnings
source share