i am getting strange issue while installing app.
I have create Google Map V2 example
and its working fine.
After all success i have integrate JAV
The error is due to your comment usage in your manifest file. You cannot use comments like this in your Manifest:
// new update
You'll have to use the XML way, like so:
<!-- new update -->
//// EDIT:
Actually, you're using a custom permission before declaring the permission. Try turning this part around:
<uses-permission android:name="my.pkg.permission.MAPS_RECEIVE" />
<permission
android:name="my.pkg.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
to
<permission
android:name="my.pkg.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-permission android:name="my.pkg.permission.MAPS_RECEIVE" />
You should add android:name=".Splash" instead of android:name="Splash"
Modified code below:::HAPPY CODING :)
<activity
android:name=".Splash"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Your package name should start with lower case letter. Suppose you have:
Com.Example.packagename
Changed it to something like
com.example.packagename
That will solve your problem.
It was very difficult to find the solution because Logcat
said something else. Finally I found the solution for my above query.
The issue was in my package name: I had set the first character of the package name to a capital letter like Chintan.Khetiya.Package
.
Generally, that was working for me in my older project, but when I tried to implement Google Maps code in my existing project, then the Manifest File is not allowed to use a capital letter in the package name.
So, finally I replaced it with lowercase characters like chinta.khetiya.package
, and updated my new Google Maps Key with the new package name.
Now it's working.
So be careful when you set your package name. See more here.