2017-05-05 205 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

是的....其實那個舊的應用程序是演示...現在應用程序幾乎完成 –