“应用程序未安装在手机上”壁纸错误

时间:2013-11-16 11:01:50

标签: android live-wallpaper

我制作的动态壁纸工作正常,直到我执行以下更改

  1. 添加了admob集成。
  2. 更改了包名称
  3. 将sdk版本从2.1更改为4.1.2
  4. 问题:每当我点击“设置”按钮时,即使安装了应用程序并设置了动态壁纸,我也没有在手机上安装错误应用程序。我现在无法打开设置屏幕以上的变化。

    注意:我正在使用unsigned apk(通过eclipse简化运行项目)

    Android Manifiest

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.fireworks.nightskylivewallpaper"
        android:versionCode="1"
        android:versionName="1.0" >
    
        <uses-sdk
            android:minSdkVersion="7"
            android:targetSdkVersion="17" />
    
        <uses-feature android:name="android.software.live_wallpaper" />
    
        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
        <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
        <uses-permission android:name="android.permission.READ_PHONE_STATE" />
        <uses-permission android:name="android.permission.VIBRATE" />
        <uses-permission android:name="android.permission.WAKE_LOCK" />
    
        <application
            android:icon="@drawable/ic_launcher"
            android:label="@string/app_name" >
            <activity
                android:name="com.fireworks.nightskylivewallpaper.AppLauncher"
                android:label="@string/app_name" >
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
    
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
            <activity android:name="com.fireworks.nightskylivewallpaper.Gallery_Activity" >
            </activity>
            <activity
                android:name="com.fireworks.nightskylivewallpaper.SettingActivity"
                android:exported="true" >
            </activity>
    
            <!-- start-code for admob banner -->
            <activity
                android:name="com.google.ads.AdActivity"
                android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
            <!-- end-code for admob banner -->
    
            <receiver android:name="com.fireworks.nightskylivewallpaper.BootReceiver" >
                <intent-filter>
                    <action android:name="android.intent.action.BOOT_COMPLETED" />
                </intent-filter>
            </receiver>
    
            <service
                android:name="com.fireworks.nightskylivewallpaper.FlareLiveWallpaper"
                android:label="@string/app_name"
                android:permission="android.permission.BIND_WALLPAPER" >
                <intent-filter>
                    <action android:name="android.service.wallpaper.WallpaperService" />
                </intent-filter>
    
                <meta-data
                    android:name="android.service.wallpaper"
                    android:resource="@xml/flare_lwp" />
            </service>
        </application>
    
    </manifest>
    

    引用以下链接,但没有找到解决方案的好运:

    "Application not installed" for Live Wallpaper, on some phones

    Android error: Application is not installed on your phone?

    Application not Installed' Error on Android 2.3.4

    Android application not installed error

    修改

    flare_lwp.xml

     <?xml version="1.0" encoding="utf-8"?>
        <wallpaper xmlns:android="http://schemas.android.com/apk/res/android"
            android:settingsActivity="com.fireworks.happylivewallpaper.SettingActivity"
            android:thumbnail="@drawable/ic_launcher" />
    

    请帮忙。谢谢!

1 个答案:

答案 0 :(得分:2)

更改行

android:settingsActivity="com.fireworks.happylivewallpaper.SettingActivity"

android:settingsActivity="com.fireworks.nightskylivewallpaper.SettingActivity"

在您的flare_lwp XML文件中。您的包裹名称尚未更改。