2014-11-21 65 views
18

它似乎沒有影響我的應用程序中的任何內容。我第一次使用Android支持庫(迄今爲止我的項目還沒有使用支持庫),但是這是一個新項目,沒有很多定製的方式。活動由Android Studio 0.9.2生成並實現導航抽屜。這些Android logcat警告是什麼意思?

運行在運行Android 4.4.2的Verizon三星Galaxy SIII上。項目設置爲15 minSDK和有針對性的21

11-21 10:31:18.204 7095-7095/com.myapp.debug I/dalvikvm﹕ Could not find method android.view.ViewGroup.onNestedScrollAccepted, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onNestedScrollAccepted 
11-21 10:31:18.204 7095-7095/com.myapp.debug W/dalvikvm﹕ VFY: unable to resolve virtual method 11400: Landroid/view/ViewGroup;.onNestedScrollAccepted (Landroid/view/View;Landroid/view/View;I)V 
11-21 10:31:18.204 7095-7095/com.myapp.debug D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0000 
11-21 10:31:18.204 7095-7095/com.myapp.debug I/dalvikvm﹕ Could not find method android.view.ViewGroup.onStopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onStopNestedScroll 
11-21 10:31:18.204 7095-7095/com.myapp.debug W/dalvikvm﹕ VFY: unable to resolve virtual method 11406: Landroid/view/ViewGroup;.onStopNestedScroll (Landroid/view/View;)V 
11-21 10:31:18.204 7095-7095/com.myapp.debug D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0000 
11-21 10:31:18.204 7095-7095/com.myapp.debug I/dalvikvm﹕ Could not find method android.support.v7.internal.widget.ActionBarOverlayLayout.stopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.setHideOnContentScrollEnabled 
11-21 10:31:18.204 7095-7095/com.myapp.debug W/dalvikvm﹕ VFY: unable to resolve virtual method 8977: Landroid/support/v7/internal/widget/ActionBarOverlayLayout;.stopNestedScroll()V 
11-21 10:31:18.204 7095-7095/com.myapp.debug D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000e 
11-21 10:31:18.234 7095-7095/com.myapp.debug I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations 
11-21 10:31:18.234 7095-7095/com.myapp.debug W/dalvikvm﹕ VFY: unable to resolve virtual method 368: Landroid/content/res/TypedArray;.getChangingConfigurations()I 
11-21 10:31:18.234 7095-7095/com.myapp.debug D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002 
11-21 10:31:18.234 7095-7095/com.myapp.debug I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType 
11-21 10:31:18.234 7095-7095/com.myapp.debug W/dalvikvm﹕ VFY: unable to resolve virtual method 390: Landroid/content/res/TypedArray;.getType (I)I 
11-21 10:31:18.234 7095-7095/com.myapp.debug D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002 

SDK如果我猜(和我),我缺少android.support.v7需要的庫。但我不知道在哪裏或在哪裏找到它。

+0

您的操作欄是否與滾輪重疊? – 2014-11-21 15:53:38

+0

[Could not find class'android.support.v7.widget.SearchView $ 5']可能的重複(http://stackoverflow.com/questions/18386739/could-not-find-class-android-support-v7-widget -searchview5) – 2014-11-21 15:57:57

+0

@ Evan037 - 它沒有出現。我幾乎沒有開始工作這個項目 - 我剛剛通過Android Studio添加了一個導航抽屜活動。據我所知,滑出式動畫不會與操作欄重疊。 – Scott 2014-11-21 16:07:03

回答

2

當您使用滑動抽屜樣例運行android studio 1.0時,會出現這些錯誤,而無需添加任何其他代碼並使用項目創建嚮導提供的所有默認值。所以這似乎是一個Android Studio問題,而不是開發人員編碼錯誤。

+0

這很有趣。你有什麼鏈接或錯誤報告?我不知道還有誰看過這個。 – Scott 2015-01-15 17:38:14

9

我想補充一下@Monte Creasor解釋的內容。 我有同樣的問題,並諮詢this bug report基本上說,這個問題可能是由com.android.support:appcompat-v7:21.0.3引起的,主要依賴是使用Android的新佈局功能。 嘗試回到v7:20.0.0,這應該解決問題,因爲它爲我和這個錯誤報告編寫者。

其實你所改變的是在應用程序build.gradle行:

compile 'com.android.support:appcompat-v7:21.0.3'或任何更新版本,你有

compile 'com.android.support:appcompat-v7:20.0.0'

+4

這樣做,你會得到:'如果你的targetSDK版本是21,'這個支持庫不應該使用比targetVersion(21)'更低的版本(20)。「 – 2015-02-12 06:07:58

+0

這樣做給了我logcat中的這個,但擺脫了其他錯誤:我的索尼Xperia Z上的'OpenGLRenderer:GL_INVALID_OPERATION' – achabacha322 2015-04-09 18:20:46

0

我有同樣的問題,也我無法獲得我的ListFragment滾動。使用v4支持庫21.0.3之前並升級到22.0.0。

這解決了我的問題!

+1

我使用的是22.0.0版本,它仍然存在。 – nAkhmedov 2015-10-21 06:30:55

0

我正在瀏覽使用Sony的遠程設備實驗室生成的日誌,同樣的警告出現,因此它不是Android Studio問題。我懷疑它在開發應用程序時使用的ActionBar主題有問題。

相關問題