Error: Cannot Find Symbol Class Advertiseactivity
I'm new to Android app development so please be patient with me. I'm writing an app that gets the GPS location from Google Play services and then broadcasts the data over Bluetooth
Solution 1:
You are using two activities as MAIN .From manifest, Remove:
<actionandroid:name="android.intent.action.MAIN" /><actionandroid:name="android.intent.action.DEFAULT" />
From AdvertiseActivity
's activity tag. Hope this helps.
Solution 2:
Remove these lines from manifest
<intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid:name="android.intent.category.DEFAULT" /></intent-filter>
And keep only this line.
<activityandroid:name="com.android.app.AdvertiseActivity"/>
Solution 3:
An Application can have only one android.intent.action.MAIN in Startup Activity. In your LocationActivity you already defined so remove intent-filter from AdvertiseActivity.
<intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid:name="android.intent.category.DEFAULT" /></intent-filter>
so its like
<activityandroid:name="com.android.app.AdvertiseActivity"/>
Post a Comment for "Error: Cannot Find Symbol Class Advertiseactivity"