2014-08-30 180 views
0

我收到这个错误,每当我尝试上传我的项目谷歌播放。不过,我最近做了一个重构 - 重命名我的项目包 - “com.mike.myapplication1_0”。我清理并重建了文件,但我仍然收到此错误。我也更新了清单文件,以及...上传APK,谷歌商店 - 不同的包名

enter image description here

这里是我的清单 - (!整个谷歌Play商店)

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.solomichael.myappppppp" > 

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18" /> 

<uses-permission android:name="android.permission.INTERNET" /> 
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 

<application 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 

    <meta-data android:name="com.google.android.gms.version" 
     android:value="@integer/google_play_services_version" /> 

    <activity 
     android:name="com.solomichael.myappppppp.MyAndroidAppActivity" 
     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.solomichael.myappppppp.probability_act" 
     android:label="@string/title_activity_probability_act" 
     android:parentActivityName="com.solomichael.myappppppp.MyAndroidAppActivity" > 
     <meta-data 
      android:name="android.support.PARENT_ACTIVITY" 
      android:value="com.example.michael.myandroidappactivity.MyAndroidAppActivity" /> 
    </activity> 
    <activity 
     android:name="com.solomichael.myappppppp.showOldCards" 
     android:label="@string/title_activity_show_old_cards" 
     android:parentActivityName="com.solomichael.myappppppp.MyAndroidAppActivity" > 
     <meta-data 
      android:name="android.support.PARENT_ACTIVITY" 
      android:value="com.example.michael.myandroidappactivity.MyAndroidAppActivity" /> 
    </activity> 
</application> 

回答

0

包的名字应该是唯一的,这样看起来别人已经使用:com.examplecom.mike.myapplication1_0你必须选择另一个名字!

评论:
如果你已经在应用商店的应用程序,你改变了包名,并重新上传该APK - 你失去所有当前用户(他们的应用程序不会得到更新!)

0

在两个<meta-data>元素的Activities你有属性开始如下...

android:value="com.example. 

我不完全知道为什么你对那些Activities<meta-data>元素,但你EIT她需要更改这些值以反映您的包名,或者完全删除<meta-data>元素,除非它们是绝对必要的。

相关问题