我的代碼存在問題。我的代碼標記爲Android Studio中的錯誤代碼,但成功打造gradle產出和設備上運行,如: 在Android Studio中標記爲錯誤代碼,但成功構建gradle並在設備上運行
當前配置:
- 我目前的項目使用的依賴大量的庫。但是,如果 帶有小庫的項目不會被標記爲這樣的錯誤。
- 的Android 1.5工作室RC1
- compileSdkVersion '谷歌Inc.:Google 的API:23
- buildToolsVersion '23 .0.2'
- 類路徑 'com.android.tools.build:gradle:1.3.1'
活動我已經做了,但還沒有解決的問題:
- 總是乾淨>重新構建項目
- 無效緩存/重啓>開放的Android工作室>打開此項目
- 關閉機器人工作室>重啓計算機>開放的android再次工作室>打開此項目
- 更新Android版本和SDK版本 5.Uninstall的Android工作室>回覆 - 安裝Android的工作室>打開項目
編輯:它看起來像從recyclerview,CardView,APpCompact
個Android支持每個出錯代碼是我的依賴
dependencies {
compile project(':android-crop')
compile project(':RTEditor-Toolbar')
compile files('libs/apache-mime4j-0.6.jar')
compile files('libs/httpmime-4.1.3.jar')
compile files('libs/jetbrains-annotations.jar')
compile files('libs/gcm.jar')
//three party library
compile('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true;
}
compile('cn.trinea.android.view.autoscrollviewpager:android-auto-scroll-view-pager:1.1.2') {
exclude module: 'support-v4'
}
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.vinaysshenoy:mugen:1.0.1'
compile 'com.github.clans:fab:1.5.5'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.github.curioustechizen.android-ago:library:1.3.0'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.github.chrisbanes.photoview:library:+'
compile 'com.subinkrishna:circularimageview:1.0.2'
compile 'me.leolin:ShortcutBadger:[email protected]'
compile 'com.google.android.gms:play-services-ads:8.3.0'
compile 'com.google.android.gms:play-services-identity:8.3.0'
compile 'com.google.android.gms:play-services-gcm:8.3.0'
compile 'cn.trinea.android.common:trinea-android-common:4.2.15'
compile 'com.sothree.slidinguppanel:library:3.1.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
}
所以如何解決?感謝提前
您是否嘗試過清洗?重新啓動android studio?重建? **告訴我們你到目前爲止所做的努力來解決這個問題** – Jeeter
還有什麼錯誤消息?也許這只是一些皮棉警告 – zapl
plz alt +在紅線上輸入。 –