0

我为 Android 开发了一个新应用程序,我的应用程序已完成。除了几 (2) 个无害的警告外,它没有任何错误。我使用 ECLIPSE 中提供的工具创建了一个 .apk 包。它创建了一个密钥和一个 .apk 文件。创建好了。但是,当我上传 .apk 文件时,我收到一条错误消息,提示我不能在包名称前使用以下内容:[com.android,com.goolge,android,com.example]

以下是我的清单详细信息

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

<uses-sdk android:minSdkVersion="7"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera" />  
<uses-feature android:name="android.hardware.camera.autofocus" />  
 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> 

<application
    android:icon="@drawable/icon"
    android:label=".SchedulerActivity" >
    <activity
        android:label="@string/app_name"
        android:name=".SchedulerActivity" >

        <intent-filter >
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
          <activity android:name=".addSubject"/>
           <activity android:name=".Assignment"/>
           <activity android:name=".CameraTake" android:screenOrientation="landscape"/>


            <activity android:name=".view_details"/>
            <activity android:name=".about"/>
            <activity android:name=".help"/>
               <activity android:name=".MyAlarmService"/>
                <activity android:name=".Assignment_view"/>
               <receiver android:name=".MyAlarmService" />



</application>

我尝试了一些在此处解释的方法,但没有奏效。谁能帮我?

4

2 回答 2

2

这是因为

package="android.Scheduler"

你遇到了这个问题。

请注意,在您的文件浏览器中,您可能有 src > android > scheduler

你不能在那里有android。

all I can think of for a quick fix, is start a new project FROM that one, and in the setup set the package name to com.something.yourappname, but where "something" is do not include "google" or "android"

于 2012-09-06T16:42:54.270 回答
1

You have choosen incorrect package name "android.Scheduler", just change your package name.

For eg. if your name is "ravi" then choose package name something like this-

"com.ravi.scheduler".

Steps change package name (eclipse):-

Under your project folder just go to "src" then here you found "android.Scheduler" right click on it, choose "Refactor" -> "rename" & then write your desired package name like "com.ravi.scheduler" & click OK.

Now Rebuild/Run your project & then do application signing.

Now you are ready to upload your app to Google Play.

于 2012-09-06T17:10:10.113 回答