2017-05-05 206 views
2

我如何从所有的Android项目取代这个,而不是做手动?它发生改变后更改包名称它给错误

package com.companyname.xyz.xyz.asyncTasks

import android.app.ProgressDialog; 
import android.content.Context; 
import android.os.AsyncTask; 
import android.support.v7.widget.DefaultItemAnimator; 
import android.support.v7.widget.LinearLayoutManager; 
import android.support.v7.widget.RecyclerView; 
import android.util.Log; 
import android.view.View; 
import android.widget.Toast; 



import org.apache.http.HttpEntity; 
import org.apache.http.HttpResponse; 
import org.apache.http.client.methods.HttpPost; 
import org.apache.http.client.params.ClientPNames; 
import org.apache.http.entity.StringEntity; 
import org.apache.http.impl.client.DefaultHttpClient; 
import org.apache.http.util.EntityUtils; 
import org.json.JSONArray; 
import org.json.JSONObject; 

import java.net.HttpURLConnection; 
import java.util.List; 

/** 
* Created by mell on 3/27/2017. 
*/ 

public class CreatedOrderListAPI extends AsyncTask<Void ,Void,Boolean> { 

    private static final String TAG = CreatedOrderListAPI.class.getSimpleName(); 
    private ProgressDialog progressDialog = null; 
    private String jsonString, response = ""; 

    private PlacedOrderListModel placedOrderListModel; 
    private RecyclerView recyclerViewOrders; 
    private List<PlacedOrderListModel> PlacedordersListModels; 
    private CreatedOrderAdapter createdOrdersAdapter; 

    private Context context; 
    private View rootview; 

我在工作室的所有文件,以更改....

+0

显示错误日志。 –

+0

错误:执行任务':app:processDebugGoogleServices'失败。 >没有匹配的客户端发现包名'com.companyname.xyz' –

+0

你到底想要什么 –

回答

1

起初读

Every Android app has a unique application ID that looks like a Java package name, such as com.example.myapp. This ID uniquely identifies your app on the device and in Google Play Store. If you want to upload a new version of your app, the application ID (and the certificate you sign it with) must be the same as the original APK—if you change the application ID, Google Play Store treats the APK as a completely different app. So once you publish your app, you should never change the application ID.

如果您的应用程序不活包名后在游戏商店然后从这里改变

打开build.gradle

defaultConfig { 
    applicationId "com.companyname.xyz.xyz.asyncTasks" 
    ..... 
     } 

FYI

不要手动更改套餐名称。

+0

我可以这样做.....首先我们删除一个旧的应用程序,它在Play商店,然后我们上传新的 –

+0

@RISHABHSAXENA'我们上传了新的'现场? ? –

+0

是的....其实那个旧的应用程序是演示...现在应用程序几乎完成 –