当我尝试在两个不同的Win 7笔记本电脑上安装ADO.NET版本的SQLite时,我收到以下错误:
Installer.exe: #32 @ 2012.05.06T13:58:34.8921292: Configuration.Process: No actual changes will be made to this system because "what-if" mode is enabled.
Installer.exe: #33 @ 2012.05.06T13:58:34.8951293: TraceOps.ShowMessage: Cannot continue, the "confirm" option is not enabled.
Run Code Online (Sandbox Code Playgroud)
我以管理员身份运行Installer.exe.
我决定使用Parceler,因为它看起来像一个很棒的库,并且得到了作者的很好支持。我正在使用Parceler包装一个对象,并将其传递给捆绑包中的另一个Activity。当我尝试打开对象包装时,出现错误:android.os.Bundle cannot be cast to org.parceler.ParcelWrapper
我的FirstActivity代码:
User user = responseData.getUser();
Bundle bundle = new Bundle();
bundle.putParcelable("User", Parcels.wrap(user));
Intent intent = new Intent(FirstActivity.this, SecondActivity.class);
intent.putExtra("User", bundle);
startActivity(intent);
Run Code Online (Sandbox Code Playgroud)
我的SecondActivity代码:
User user = Parcels.unwrap(this.getIntent().getParcelableExtra("User"));
Run Code Online (Sandbox Code Playgroud)
我怀疑这只是一个新手错误。任何建设性的帮助表示赞赏!