Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

前端 未结 4 1646
孤独总比滥情好
孤独总比滥情好 2020-12-19 08:31

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

相关标签:
4条回答
  • 2020-12-19 08:47

    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" />
    
    0 讨论(0)
  • 2020-12-19 08:51

    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>
    
    0 讨论(0)
  • 2020-12-19 08:54

    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.

    0 讨论(0)
  • 2020-12-19 09:13

    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.

    0 讨论(0)
提交回复
热议问题