gpt4 book ai didi

android - 更改包名称后出现错误

转载 作者:搜寻专家 更新时间:2023-11-01 09:35:16 25 4
gpt4 key购买 nike

我如何从所有 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;

我必须更改工作室的所有文件....

最佳答案

初读

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.

如果您的应用不在 Play 商店中,那么只需从这里更改

打开build.gradle

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

仅供引用

不要手动更改包名称。

关于android - 更改包名称后出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43802882/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com