我刚刚在我的App中遇到了一个尴尬的错误.
在我的Nexus 5/7上运行android 5.0.1/5.0.2,一切正常.但是,如果我尝试在具有早期版本(测试4.4.4和4.3)的设备上运行完全相同的代码,我会收到以下错误:
03-13 13:49:41.140 21714-21714/? E/dalvikvm? Could not find class 'com.default.package.application.model.Appcomponent', referenced from method com.default.package.application.controller.DatabaseHandler.getScreenComponents
03-13 13:49:41.140 21714-21714/? E/dalvikvm? Could not find class 'android.support.v7.app.ActionBarActivityDelegate$1', referenced from method android.support.v7.app.ActionBarActivityDelegate.<init>
03-13 13:49:41.140 21714-21714/? E/dalvikvm? Could not find class 'android.support.v7.app.ActionBarActivityDelegateHC', referenced from method android.support.v7.app.ActionBarActivityDelegate.createDelegate
03-13 13:49:41.140 21714-21714/? E/dalvikvm? Could not find class 'android.support.v7.app.ActionBarActivityDelegateBase', referenced from method android.support.v7.app.ActionBarActivityDelegate.createDelegate
03-13 13:49:41.150 21714-21714/? E/dalvikvm? Could not find class 'android.support.v7.app.ActionBarActivityDelegate$ActionBarDrawableToggleImpl', referenced from method android.support.v7.app.ActionBarActivityDelegate.getDrawerToggleDelegate
03-13 13:49:41.150 21714-21714/? E/dalvikvm? Could not find class 'android.support.v7.internal.view.SupportMenuInflater', referenced from …Run Code Online (Sandbox Code Playgroud) 我的滚动视图中有一个简单的 EditText。所有其他元素都工作得很好,但是我不会在点击时获得通常的 EditText 行为(键盘没有出现,我不能写)。
这是我用于该领域的 xml。
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/enterWishprice"
android:background="@drawable/edit_back"
android:focusable="true"
android:focusableInTouchMode="true"
android:text="0 F€"
android:gravity="center_vertical|center_horizontal"
android:textSize="26dp"
android:inputType="number"
android:layout_margin="10dp" />
Run Code Online (Sandbox Code Playgroud)
如您所见,我已经尝试过设置 focusable/inTouchMode。我还尝试在该字段上设置一个单击侦听器以手动打开工作正常的键盘。但是我仍然无法在该字段中输入任何内容。之后我尝试在点击监听器中使用 requestFocus 没有任何结果。此外,我在 EditText 以及周围的 ScrollView 上尝试了 clearFocus - 也不起作用。
希望你能给我一个提示,因为我没有想法......提前致谢!
我在使用RequestFuture排球时遇到了问题.实际上它只是停在wait(0); 在doGet()下面的RequestFuture类中的函数内部,永远不会被我认为应该唤醒onResponse或者被唤醒onErrorResponse.
private synchronized T doGet(Long timeoutMs)
throws InterruptedException, ExecutionException, TimeoutException {
if (mException != null) {
throw new ExecutionException(mException);
}
if (mResultReceived) {
return mResult;
}
if (timeoutMs == null) {
wait(0);
} else if (timeoutMs > 0) {
wait(timeoutMs);
}
if (mException != null) {
throw new ExecutionException(mException);
}
if (!mResultReceived) {
throw new TimeoutException();
}
return mResult;
}
@Override
public boolean isCancelled() {
if (mRequest == null) …Run Code Online (Sandbox Code Playgroud)