有没有什么好的方法可以在 ViewFlipper 中保留当前 View ,同时仍然能够加载布局端口文件夹?也许使用 onRetainNonConfigurationInstance()?如果是这样,我将如何实现它?我尝试了某人的解决方案:
android:configChanges="orientation|keyboardHidden"
在 list 中。
问题在于 Android 然后会忽略我重新排列输入字段和按钮的布局端口文件夹。
--更新--
这是我添加了 hooked82 代码的代码。我添加了引发错误的部分:
public class AtriumMain extends Activity {
Login login = new Login();
String username, password;
EditText user, pass, serverName, propertyID;
Context context;
CharSequence text;
int duration, settingsClicks, doneClicks;
final int WRONG_SETTINGS_DIALOG = 0;
final int SET_SETTINGS_DIALOG = 1;
LayoutInflater inflater;
View failed_login, wrong_settings, card1, card2, set_settings;
Button loginButton, settingsButton, doneButton, checkServer, yes_button, no_button, ok_button;
ImageView failed_login_image, wrong_settings_image, set_settings_image;
TextView failed_login_errorText, wrong_settings_errorText, set_settings_errorText;
Boolean correctSettings;
ViewFlipper flipper;
Resources res;
Application app;
OutputStreamWriter settings_outstream;
InputStream settings_instream;
Toast failed_login_errorMessage;
Dialog wrong_settings_errorMessage, set_settings_errorMessage;
Builder test;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (savedInstanceState != null)
{
int flipperPosition = savedInstanceState.getInt("CARD_NUMBER");
flipper.setDisplayedChild(flipperPosition);
}
setContentView(R.layout.login);
context = getApplicationContext();
res = getResources();
app = ((AtriumApplication)this.getApplication());
inflater = getLayoutInflater();
failed_login = inflater.inflate(R.layout.failed_login, (ViewGroup) findViewById(R.id.failed_login));
wrong_settings = inflater.inflate(R.layout.wrong_settings, (ViewGroup) findViewById(R.id.wrong_settings));
set_settings = inflater.inflate(R.layout.set_settings, (ViewGroup) findViewById(R.id.set_settings));
loginButton = (Button)findViewById(R.id.login);
settingsButton = (Button)findViewById(R.id.settings);
doneButton = (Button)findViewById(R.id.done);
checkServer = (Button)findViewById(R.id.check_server);
//((Button)findViewById(R.id.login)).setOnClickListener(mAddListener);
user = (EditText)findViewById(R.id.username);
pass = (EditText)findViewById(R.id.password);
serverName = (EditText)findViewById(R.id.serverName);
propertyID = (EditText)findViewById(R.id.propertyId);
flipper=(ViewFlipper)findViewById(R.id.cards);
failed_login_image = (ImageView) failed_login.findViewById(R.id.failed_login_image);
failed_login_image.setImageResource(R.drawable.warning2);
failed_login_errorText = (TextView) failed_login.findViewById(R.id.text);
failed_login_errorText.setText(res.getString(R.string.failed_login));
failed_login_errorMessage = new Toast(context);
failed_login_errorMessage.setGravity(Gravity.CENTER_VERTICAL, 0, 0);
failed_login_errorMessage.setDuration(Toast.LENGTH_LONG);
failed_login_errorMessage.setView(failed_login);
loginButton.setOnClickListener(loginListener);
settingsButton.setOnClickListener(settingsListener);
doneButton.setOnClickListener(doneListener);
checkServer.setOnClickListener(checkServerListener);
settingsClicks = 0;
doneClicks = 0;
if ((((AtriumApplication)app).getCorrectSettings()))
{
doneButton.getBackground().setColorFilter(new LightingColorFilter(0xFF0000FF, 0xFF000010));
}
else
{
doneButton.getBackground().setColorFilter(new LightingColorFilter(0xFFFF1010, 0xFFAA0000));
showDialog(SET_SETTINGS_DIALOG);
}
}
@Override
public void onSaveInstanceState(Bundle savedInstanceState)
{
int position = flipper.getDisplayedChild();
savedInstanceState.putInt("CARD_NUMBER", position);
}
这是错误发生处的 Logcat 输出:
08-20 11:23:52.730: VERBOSE/WindowManager(293): Preventing status bar from hiding by policy
08-20 11:23:52.740: VERBOSE/WindowManager(293): Preventing status bar from hiding by policy
08-20 11:23:52.760: VERBOSE/WindowManager(293): Preventing status bar from hiding by policy
08-20 11:23:52.770: VERBOSE/WindowManager(293): Preventing status bar from hiding by policy
08-20 11:23:52.790: VERBOSE/WindowManager(293): Preventing status bar from hiding by policy
08-20 11:23:52.810: VERBOSE/WindowManager(293): Preventing status bar from hiding by policy
08-20 11:23:52.820: VERBOSE/WindowManager(293): Preventing status bar from hiding by policy
08-20 11:23:52.830: INFO/SurfaceFlinger(223): id=6705 Removed Starting com.szymon.atrium idx=4 Map Size=5
08-20 11:23:52.830: VERBOSE/WindowManager(293): Preventing status bar from hiding by policy
08-20 11:23:52.830: INFO/SurfaceFlinger(223): id=6705 Removed Starting com.szymon.atrium idx=-2 Map Size=5
08-20 11:23:52.840: VERBOSE/WindowManager(293): Preventing status bar from hiding by policy
08-20 11:23:52.860: VERBOSE/WindowManager(293): Preventing status bar from hiding by policy
08-20 11:23:52.870: VERBOSE/WindowManager(293): Preventing status bar from hiding by policy
08-20 11:23:52.890: VERBOSE/WindowManager(293): Preventing status bar from hiding by policy
08-20 11:23:54.010: DEBUG/HierarchicalStateMachine(293): handleMessage: E msg.what=83
08-20 11:23:54.010: DEBUG/HierarchicalStateMachine(293): processMsg: ConnectedState
08-20 11:23:54.010: DEBUG/WifiStateMachine(293): ConnectedState{ what=83 when=-4ms arg1=936 }
08-20 11:23:54.030: DEBUG/HierarchicalStateMachine(293): handleMessage: X
08-20 11:23:57.030: DEBUG/HierarchicalStateMachine(293): handleMessage: E msg.what=83
08-20 11:23:57.030: DEBUG/HierarchicalStateMachine(293): processMsg: ConnectedState
08-20 11:23:57.030: DEBUG/WifiStateMachine(293): ConnectedState{ what=83 when=-4ms arg1=936 }
08-20 11:23:57.050: DEBUG/HierarchicalStateMachine(293): handleMessage: X
08-20 11:23:57.480: DEBUG/dalvikvm(30999): GC_EXPLICIT freed 1181K, 30% free 14894K/21255K, paused 3ms+3ms
08-20 11:24:00.000: DEBUG/KeyguardUpdateMonitor(293): received broadcast android.intent.action.TIME_TICK
08-20 11:24:00.000: DEBUG/KeyguardUpdateMonitor(293): handleTimeUpdate
08-20 11:24:00.050: DEBUG/HierarchicalStateMachine(293): handleMessage: E msg.what=83
08-20 11:24:00.050: DEBUG/HierarchicalStateMachine(293): processMsg: ConnectedState
08-20 11:24:00.050: DEBUG/WifiStateMachine(293): ConnectedState{ what=83 when=-3ms arg1=936 }
08-20 11:24:00.070: DEBUG/HierarchicalStateMachine(293): handleMessage: X
08-20 11:24:01.070: INFO/OrientationDebug(293): [pwm] in MyOrientationListener.onOrientationChanged() rotation=1 mFancyRotationAnimation=0 now call mWindowManager.setRotation()
08-20 11:24:01.070: INFO/OrientationDebug(293): [wms] in setRotation() rotation=1 alwaysSendConfiguration=false animFlags=0
08-20 11:24:01.070: INFO/OrientationDebug(293): [wms] in setRotation() now call setRotationUnchecked()
08-20 11:24:01.070: INFO/OrientationDebug(293): [pwm] rotationForOrientationLw(), orientation=-1 lastRotation=2 userRotation=3
08-20 11:24:01.070: INFO/OrientationDebug(293): [pwm] useSensorForOrientationLp(), return true #2
08-20 11:24:01.070: INFO/OrientationDebug(293): [pwm] in rotationForOrientationLw(), return #13
08-20 11:24:01.070: VERBOSE/WindowOrientationListener(293): > Orientation changed! rotation=1
08-20 11:24:01.070: VERBOSE/WindowOrientationListener(293): Result: rotation=1, confidence=[0.0, 1.0, 0.0, 0.0], timeDeltaMS=54.104
08-20 11:24:01.240: INFO/SurfaceFlinger(223): id=6709(1638) createSurface 0x14c93c for pid 0 (1280x800),2 flag=0, FreezeSurface
08-20 11:24:01.280: INFO/OrientationDebug(293): [wms] in setRotationUncheckedLocked(), Setting rotation to 1 The rotation is came from PWM.rotationForOrientationLw()
08-20 11:24:01.280: DEBUG/SurfaceFlinger(223): mCurrentState.orientation:1 mDrawingState.orientation:2
08-20 11:24:01.280: DEBUG/TvoutSystem(293): bool android::TvoutSystem::TvoutSetRotation(int)
08-20 11:24:01.280: DEBUG/TvoutSystem(293): bool android::TvoutSystem::TvoutGetCableStatus()
08-20 11:24:01.280: DEBUG/TvoutService(230): virtual bool android::TvoutService::TvoutGetCableStatus()
08-20 11:24:01.280: DEBUG/TvoutService(Java)(293): TvoutGetCableStatus() : false
08-20 11:24:01.280: INFO/WindowManager(293): Setting rotation to 1, animFlags=0
08-20 11:24:01.280: INFO/ActivityManager(293): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=1/1/2 nav=1/2 orien=P layout=0x10000014 uiMode=0x11 seq=291 FlipFont=0}
08-20 11:24:01.290: VERBOSE/WindowManager(293): Preventing status bar from hiding by policy
08-20 11:24:01.320: VERBOSE/WindowOrientationListener(293): > Orientation changed! rotation=1
08-20 11:24:01.320: VERBOSE/WindowOrientationListener(293): Result: rotation=1, confidence=[0.0, 1.0, 0.0, 0.0], timeDeltaMS=54.104
08-20 11:24:01.320: INFO/WindowManager(293): Putting input method here!
08-20 11:24:01.320: DEBUG/WindowManager(293): w.mAttrs.token=ActivityRecord{41811888 com.szymon.atrium/.AtriumMain}
08-20 11:24:01.320: DEBUG/WindowManager(293): w.mToken=AppWindowToken{427877c0 token=ActivityRecord{41811888 com.szymon.atrium/.AtriumMain}}
08-20 11:24:01.320: DEBUG/WindowManager(293): token=AppWindowToken{427877c0 token=ActivityRecord{41811888 com.szymon.atrium/.AtriumMain}}
08-20 11:24:01.320: INFO/SurfaceFlinger(223): id=6707 Removed com.szymon.atrium/com.szymon.atrium.AtriumMain idx=2 Map Size=5
08-20 11:24:01.320: INFO/WindowManager(293): Placing input method @5
08-20 11:24:01.330: INFO/SurfaceFlinger(223): id=6707 Removed com.szymon.atrium/com.szymon.atrium.AtriumMain idx=-2 Map Size=5
08-20 11:24:01.330: ERROR/TelephonyManager(22015): Hidden constructor called more than once per process!
08-20 11:24:01.330: INFO/WindowManager(293): Placing input method @1
08-20 11:24:01.340: DEBUG/MiniModeAppsPanel(430): ACTION_CONFIGURATION_CHANGED
08-20 11:24:02.140: VERBOSE/WindowOrientationListener(293): rotation : 1 Angle: 90 tilt: 2
08-20 11:24:03.070: DEBUG/HierarchicalStateMachine(293): handleMessage: E msg.what=83
08-20 11:24:03.070: DEBUG/HierarchicalStateMachine(293): processMsg: ConnectedState
08-20 11:24:03.070: DEBUG/WifiStateMachine(293): ConnectedState{ what=83 when=-4ms arg1=936 }
08-20 11:24:03.070: DEBUG/HierarchicalStateMachine(293): handleMessage: X
08-20 11:24:03.070: WARN/WindowManager(293): Window freeze timeout expired.
08-20 11:24:03.070: WARN/WindowManager(293): Force clearing orientation change: Window{407d1208 InputMethod paused=false}
08-20 11:24:03.390: WARN/InputConnectionWrapper.ICC(439): Timed out waiting on IInputContextCallback
08-20 11:24:03.420: WARN/Resources(439): Converting to boolean: TypedValue{t=0x3/d=0x15 "true" a=-1}
08-20 11:24:03.430: WARN/Resources(439): Converting to boolean: TypedValue{t=0x3/d=0x15 "true" a=-1}
08-20 11:24:03.590: VERBOSE/WindowOrientationListener(293): rotation : 1 Angle: 90 tilt: 0
08-20 11:24:05.070: VERBOSE/WindowOrientationListener(293): rotation : 1 Angle: 90 tilt: -2
08-20 11:24:05.430: WARN/InputConnectionWrapper.ICC(439): Timed out waiting on IInputContextCallback
08-20 11:24:05.450: ERROR/TabletStatusBar(430): closing mini mode apps panel
08-20 11:24:05.490: DEBUG/dalvikvm(439): GC_FOR_ALLOC freed 1756K, 38% free 10279K/16391K, paused 27ms
08-20 11:24:06.080: DEBUG/HierarchicalStateMachine(293): handleMessage: E msg.what=83
08-20 11:24:06.080: DEBUG/HierarchicalStateMachine(293): processMsg: ConnectedState
08-20 11:24:06.080: DEBUG/WifiStateMachine(293): ConnectedState{ what=83 when=-4ms arg1=936 }
08-20 11:24:06.090: DEBUG/HierarchicalStateMachine(293): handleMessage: X
08-20 11:24:06.290: WARN/WindowManager(293): App freeze timeout expired.
08-20 11:24:06.290: WARN/WindowManager(293): Force clearing freeze: AppWindowToken{427877c0 token=ActivityRecord{41811888 com.szymon.atrium/.AtriumMain}}
08-20 11:24:06.300: INFO/SurfaceFlinger(223): id=6710(1639) createSurface for pid 0 (800x2560),-1 flag=131072, BlackSurface
08-20 11:24:06.300: INFO/SurfaceFlinger(223): id=6711(1640) createSurface for pid 0 (1600x1280),-1 flag=131072, BlackSurface
08-20 11:24:06.300: INFO/SurfaceFlinger(223): id=6712(1641) createSurface for pid 0 (800x2560),-1 flag=131072, BlackSurface
08-20 11:24:06.310: INFO/SurfaceFlinger(223): id=6713(1642) createSurface for pid 0 (1600x1280),-1 flag=131072, BlackSurface
08-20 11:24:06.370: DEBUG/dalvikvm(15392): GC_CONCURRENT freed 458K, 37% free 7282K/11399K, paused 7ms+8ms
08-20 11:24:06.370: DEBUG/dalvikvm(20484): GC_EXPLICIT freed 9K, 5% free 6215K/6531K, paused 3ms+2ms
08-20 11:24:06.560: VERBOSE/WindowOrientationListener(293): rotation : 1 Angle: 90 tilt: -3
08-20 11:24:06.740: INFO/SurfaceFlinger(223): id=6709 Removed FreezeSurface idx=9 Map Size=4
08-20 11:24:06.740: INFO/SurfaceFlinger(223): id=6710 Removed BlackSurface idx=5 Map Size=4
08-20 11:24:06.740: INFO/SurfaceFlinger(223): id=6711 Removed BlackSurface idx=5 Map Size=4
08-20 11:24:06.750: INFO/SurfaceFlinger(223): id=6712 Removed BlackSurface idx=5 Map Size=4
08-20 11:24:06.750: INFO/SurfaceFlinger(223): id=6712 Removed BlackSurface idx=-2 Map Size=4
08-20 11:24:06.750: INFO/SurfaceFlinger(223): id=6711 Removed BlackSurface idx=-2 Map Size=4
08-20 11:24:06.750: INFO/SurfaceFlinger(223): id=6710 Removed BlackSurface idx=-2 Map Size=4
08-20 11:24:06.750: INFO/SurfaceFlinger(223): id=6709 Removed FreezeSurface idx=-2 Map Size=4
08-20 11:24:06.750: INFO/SurfaceFlinger(223): id=6713 Removed BlackSurface idx=5 Map Size=4
08-20 11:24:06.750: INFO/OrientationDebug(293): [pwm] rotationForOrientationLw(), orientation=-1 lastRotation=1 userRotation=3
08-20 11:24:06.750: INFO/OrientationDebug(293): [pwm] useSensorForOrientationLp(), return true #2
08-20 11:24:06.750: INFO/OrientationDebug(293): [pwm] in rotationForOrientationLw(), return #13
08-20 11:24:06.760: INFO/SurfaceFlinger(223): id=6713 Removed BlackSurface idx=-2 Map Size=4
08-20 11:24:08.030: VERBOSE/WindowOrientationListener(293): rotation : 1 Angle: 90 tilt: -3
08-20 11:24:08.460: DEBUG/dalvikvm(293): GC_EXPLICIT freed 1140K, 16% free 116574K/137223K, paused 13ms+19ms
08-20 11:24:09.090: DEBUG/HierarchicalStateMachine(293): handleMessage: E msg.what=83
08-20 11:24:09.090: DEBUG/HierarchicalStateMachine(293): processMsg: ConnectedState
08-20 11:24:09.090: DEBUG/WifiStateMachine(293): ConnectedState{ what=83 when=-4ms arg1=936 }
08-20 11:24:09.110: DEBUG/HierarchicalStateMachine(293): handleMessage: X
08-20 11:24:09.500: VERBOSE/WindowOrientationListener(293): rotation : 1 Angle: 91 tilt: 2
08-20 11:24:11.380: DEBUG/dalvikvm(20510): GC_EXPLICIT freed 20K, 5% free 6220K/6531K, paused 2ms+9ms
08-20 11:24:12.120: DEBUG/HierarchicalStateMachine(293): handleMessage: E msg.what=83
08-20 11:24:12.120: DEBUG/HierarchicalStateMachine(293): processMsg: ConnectedState
08-20 11:24:12.120: DEBUG/WifiStateMachine(293): ConnectedState{ what=83 when=-4ms arg1=936 }
08-20 11:24:12.130: DEBUG/HierarchicalStateMachine(293): handleMessage: X
希望对您有所帮助。
最佳答案
当您的屏幕方向通过覆盖 onSaveInstanceState 发生变化时,尝试保存您在 ViewFlipper 中所在的选项卡。
@Override
public void onSaveInstanceState(Bundle savedInstanceState) {
int position = flipper.getDisplayedChild();
savedInstanceState.putInt("TAB_NUMBER", position);
}
然后在您的 onCreate 中,尝试以下操作
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (savedInstanceState != null) {
int flipperPosition = savedInstanceState.getInt("TAB_NUMBER");
flipper.setDisplayedChild(flipperPosition);
}
}
确保仅在初始化 flipper 后才调用 flipper 的 setDisplayedChild() 方法,例如,
flipper = (ViewFlipper) findViewById(R.id.flipper);
在您的 onCreate() 方法中。不这样做可能会导致崩溃。
关于android - 更改方向时如何在 ViewFlipper 中保持当前 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7118376/
出于纯粹的兴趣,我很好奇如何按顺序创建PI,而不是在过程结果之后生成数字,而是让数字在过程本身生成时显示。如果是这种情况,那么数字可以自行产生,我可以对以前看到的数字实现垃圾收集,从而创建一个无限系列。结果只是在Pi系列之后每秒生成一个数字。这是我通过互联网筛选的结果:这是流行的计算机友好算法,类机器算法:defarccot(x,unity)xpow=unity/xn=1sign=1sum=0loopdoterm=xpow/nbreakifterm==0sum+=sign*(xpow/n)xpow/=x*xn+=2sign=-signendsumenddefcalc_pi(digits
如何正确创建Rails迁移,以便将表更改为MySQL中的MyISAM?目前是InnoDB。运行原始执行语句会更改表,但它不会更新db/schema.rb,因此当在测试环境中重新创建表时,它会返回到InnoDB并且我的全文搜索失败。我如何着手更改/添加迁移,以便将现有表修改为MyISAM并更新schema.rb,以便我的数据库和相应的测试数据库得到相应更新? 最佳答案 我没有找到执行此操作的好方法。您可以像有人建议的那样更改您的schema.rb,然后运行:rakedb:schema:load,但是,这将覆盖您的数据。我的做法是(假设
如何在buildr项目中使用Ruby?我在很多不同的项目中使用过Ruby、JRuby、Java和Clojure。我目前正在使用我的标准Ruby开发一个模拟应用程序,我想尝试使用Clojure后端(我确实喜欢功能代码)以及JRubygui和测试套件。我还可以看到在未来的不同项目中使用Scala作为后端。我想我要为我的项目尝试一下buildr(http://buildr.apache.org/),但我注意到buildr似乎没有设置为在项目中使用JRuby代码本身!这看起来有点傻,因为该工具旨在统一通用的JVM语言并且是在ruby中构建的。除了将输出的jar包含在一个独特的、仅限ruby
我正在使用的第三方API的文档状态:"[O]urAPIonlyacceptspaddedBase64encodedstrings."什么是“填充的Base64编码字符串”以及如何在Ruby中生成它们。下面的代码是我第一次尝试创建转换为Base64的JSON格式数据。xa=Base64.encode64(a.to_json) 最佳答案 他们说的padding其实就是Base64本身的一部分。它是末尾的“=”和“==”。Base64将3个字节的数据包编码为4个编码字符。所以如果你的输入数据有长度n和n%3=1=>"=="末尾用于填充n%
我需要从一个View访问多个模型。以前,我的links_controller仅用于提供以不同方式排序的链接资源。现在我想包括一个部分(我假设)显示按分数排序的顶级用户(@users=User.all.sort_by(&:score))我知道我可以将此代码插入每个链接操作并从View访问它,但这似乎不是“ruby方式”,我将需要在不久的将来访问更多模型。这可能会变得很脏,是否有针对这种情况的任何技术?注意事项:我认为我的应用程序正朝着单一格式和动态页面内容的方向发展,本质上是一个典型的网络应用程序。我知道before_filter但考虑到我希望应用程序进入的方向,这似乎很麻烦。最终从任何
我想要做的是有2个不同的Controller,client和test_client。客户端Controller已经构建,我想创建一个test_clientController,我可以使用它来玩弄客户端的UI并根据需要进行调整。我主要是想绕过我在客户端中内置的验证及其对加载数据的管理Controller的依赖。所以我希望test_clientController加载示例数据集,然后呈现客户端Controller的索引View,以便我可以调整客户端UI。就是这样。我在test_clients索引方法中试过这个:classTestClientdefindexrender:template=>
exe应该在我打开页面时运行。异步进程需要运行。有什么方法可以在ruby中使用两个参数异步运行exe吗?我已经尝试过ruby命令-system()、exec()但它正在等待过程完成。我需要用参数启动exe,无需等待进程完成是否有任何rubygems会支持我的问题? 最佳答案 您可以使用Process.spawn和Process.wait2:pid=Process.spawn'your.exe','--option'#Later...pid,status=Process.wait2pid您的程序将作为解释器的子进程执行。除
鉴于我有以下迁移:Sequel.migrationdoupdoalter_table:usersdoadd_column:is_admin,:default=>falseend#SequelrunsaDESCRIBEtablestatement,whenthemodelisloaded.#Atthispoint,itdoesnotknowthatusershaveais_adminflag.#Soitfails.@user=User.find(:email=>"admin@fancy-startup.example")@user.is_admin=true@user.save!ende
我正在为一个项目制作一个简单的shell,我希望像在Bash中一样解析参数字符串。foobar"helloworld"fooz应该变成:["foo","bar","helloworld","fooz"]等等。到目前为止,我一直在使用CSV::parse_line,将列分隔符设置为""和.compact输出。问题是我现在必须选择是要支持单引号还是双引号。CSV不支持超过一个分隔符。Python有一个名为shlex的模块:>>>shlex.split("Test'helloworld'foo")['Test','helloworld','foo']>>>shlex.split('Test"
我在我的Rails项目中使用Pow和powifygem。现在我尝试升级我的ruby版本(从1.9.3到2.0.0,我使用RVM)当我切换ruby版本、安装所有gem依赖项时,我通过运行railss并访问localhost:3000确保该应用程序正常运行以前,我通过使用pow访问http://my_app.dev来浏览我的应用程序。升级后,由于错误Bundler::RubyVersionMismatch:YourRubyversionis1.9.3,butyourGemfilespecified2.0.0,此url不起作用我尝试过的:重新创建pow应用程序重启pow服务器更新战俘