小编rav*_*ari的帖子

无法在Google Play商店中发布应用的更新版本

我在Google商店中已经有一个版本(versioncode = 2).昨天做了一些更改后,当我尝试发布应用程序时,我收到以下错误消息,无法发布更新.知道怎么解决它?

This configuration cannot be published for the following reason(s): Version 2 is not served to any device configuration: all devices that might receive version 2 would receive version 3. Some devices are eligible to run multiple APKs. In such a scenario, the device will receive the APK with the higher version code.

仅供参考,新版本是 versioncode=3

android publishing

15
推荐指数
2
解决办法
1万
查看次数

从Dropbox获取直接文件链接

有没有办法在Android代码中从Dropbox获取"直接文件链接"而不使用Dropbox API?

我在这方面搜索了很多,但没有找到解决方案.任何回复将不胜感激.

android dropbox

4
推荐指数
3
解决办法
5625
查看次数

无法在AsyncTask中创建对话框

我无法在AsyncTask中创建对话框.有人可以帮忙吗?我收到错误"android.view.WindowManager $ BadTokenException:无法添加窗口 - 令牌null不适用于应用程序".

这是我的代码:

    public class MainActivity extends Activity {
            protected void onCreate(Bundle savedInstanceState) {
                    super.onCreate(savedInstanceState);
                    setContentView(R.layout.activity_main);
                    AsyncTaskTest at=new AsyncTaskTest();
                    at.execute();
            }   

            public class AsyncTaskTest extends AsyncTask<Void, String, Void> {
                    protected Void doInBackground(Void... vd){
                            try{
                                    String desc = "Show Dialog without error";
                                    publishProgress(desc);
                            }catch(Exception e){
                                    publishProgress("Error: "+e.toString());
                            }
                            return null;
                    }
                    protected void onProgressUpdate(String... msg) {
                            showDialog(msg[0]);
                    }
                    private void showDialog(String msg){
                    final AlertDialog.Builder alertBox = new AlertDialog.Builder(new ContextThemeWrapper(getApplicationContext(), android.R.style.Theme_Dialog));
                    alertBox.setMessage(msg);
                    alertBox.setCancelable(false)
                                    .setPositiveButton("Ok", new DialogInterface.OnClickListener(){
                                    public void onClick(DialogInterface …
Run Code Online (Sandbox Code Playgroud)

android android-asynctask

0
推荐指数
1
解决办法
1204
查看次数

标签 统计

android ×3

android-asynctask ×1

dropbox ×1

publishing ×1