我在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代码中从Dropbox获取"直接文件链接"而不使用Dropbox API?
我在这方面搜索了很多,但没有找到解决方案.任何回复将不胜感激.
我无法在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)