Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
359 views
in Technique[技术] by (71.8m points)

build.gradle - android : Error converting byte to dex

So, I am getting the following error while running the project after upgrading build.gradle (Project) from

dependencies {
        classpath 'com.android.tools.build:gradle:2.0.0-alpha2'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
}

to

dependencies {
        classpath 'com.android.tools.build:gradle:2.0.0-alpha3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
}

I just changed the gradle from 2.0.0-alpha2 to 2.0.0-alpha3 and then, trying to build the project.

Error log:

Information:Gradle tasks [:app:assembleDebug]
:app:incrementalDebugBuildInfoGenerator
:app:preBuild UP-TO-DATE
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
:app:prepareComAndroidSupportCardviewV72311Library UP-TO-DATE
:app:prepareComAndroidSupportCustomtabs2311Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2311Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72311Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
:app:prepareComDigitsSdkAndroidDigits192Library UP-TO-DATE
:app:prepareComTwitterSdkAndroidTweetComposer102Library UP-TO-DATE
:app:prepareComTwitterSdkAndroidTweetUi180Library UP-TO-DATE
:app:prepareComTwitterSdkAndroidTwitter1110Library UP-TO-DATE
:app:prepareComTwitterSdkAndroidTwitterCore162Library UP-TO-DATE
:app:prepareIoFabricSdkAndroidFabric1310Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:injectDebugBootstrap
Instrumented app with a fast deploy bootstrapping application
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:fabricGenerateResourcesDebug
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources
:app:mergeDebugResources
:app:processDebugResources
:app:generateDebugSources
:app:compileDebugJavaWithJavac UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources UP-TO-DATE
:app:fastDeployDebugExtractor
:app:generateDebugInstantRunAppInfo
:app:transformClassesWithExtractJarsForDebug
:app:transformClassesWithInstantRunVerifierForDebug
:app:transformClassesWithInstantRunForDebug
IncrementalSupportVisitor Visiting com/waysay/R$color
IncrementalSupportVisitor Visiting com/waysay/R$style
IncrementalSupportVisitor Visiting com/waysay/R$attr
IncrementalSupportVisitor Visiting com/waysay/R$dimen
IncrementalSupportVisitor Visiting com/waysay/R$integer
IncrementalSupportVisitor Visiting com/waysay/R$anim
IncrementalSupportVisitor Visiting com/waysay/BuildConfig
IncrementalSupportVisitor Visiting com/waysay/R$mipmap
IncrementalSupportVisitor Visiting com/waysay/R$menu
IncrementalSupportVisitor Visiting com/waysay/R
IncrementalSupportVisitor Visiting com/waysay/R$drawable
IncrementalSupportVisitor Visiting com/waysay/R$raw
IncrementalSupportVisitor Visiting com/waysay/R$layout
IncrementalSupportVisitor Visiting com/waysay/R$plurals
IncrementalSupportVisitor Visiting com/waysay/R$styleable
IncrementalSupportVisitor Visiting com/waysay/R$id
IncrementalSupportVisitor Visiting com/waysay/R$string
IncrementalSupportVisitor Visiting com/waysay/R$bool
IncrementalSupportVisitor Visiting com/waysay/models/WsModelPreference
IncrementalSupportVisitor Visiting com/waysay/models/WsModelMessage
IncrementalSupportVisitor Visiting com/waysay/models/ModelPreference$1
IncrementalSupportVisitor Visiting com/waysay/models/WsModelComment
IncrementalSupportVisitor Visiting com/waysay/models/ModelGetAnonymousJWT
IncrementalSupportVisitor Visiting com/waysay/models/ModelInboxFeed
IncrementalSupportVisitor Visiting com/waysay/models/ModelGetAnonymousJWT$1
IncrementalSupportVisitor Visiting com/waysay/models/ModelPreference
IncrementalSupportVisitor Visiting com/waysay/adapters/RecyclerAdapterMessage$1
IncrementalSupportVisitor Visiting com/waysay/adapters/RecyclerAdapterComment$CommentViewHolder
IncrementalSupportVisitor Visiting com/waysay/adapters/RecyclerAdapterMessage$MessagesViewHolder$1
IncrementalSupportVisitor Visiting com/waysay/adapters/AdapterPreference$1
IncrementalSupportVisitor Visiting com/waysay/adapters/RecyclerAdapterMessage$MessagesViewHolder
IncrementalSupportVisitor Visiting com/waysay/adapters/RecyclerAdapterComment
IncrementalSupportVisitor Visiting com/waysay/adapters/RecyclerAdapterMessage
IncrementalSupportVisitor Visiting com/waysay/adapters/AdapterPreference
IncrementalSupportVisitor Visiting com/waysay/adapters/RecyclerAdapterMessage$MessagesViewHolder$2
IncrementalSupportVisitor Visiting com/waysay/fragments/DummyFragment$1
IncrementalSupportVisitor Visiting com/waysay/fragments/DialogFragmentUserProfile$2
IncrementalSupportVisitor Visiting com/waysay/fragments/FragmentPlaceholder$2
IncrementalSupportVisitor Visiting com/waysay/fragments/DialogFragmentUserProfile$4
IncrementalSupportVisitor Visiting com/waysay/fragments/FragmentPlaceholder
IncrementalSupportVisitor Visiting com/waysay/fragments/DialogFragmentComment
IncrementalSupportVisitor Visiting com/waysay/fragments/DialogFragmentUserProfile$5
IncrementalSupportVisitor Visiting com/waysay/fragments/FragmentPlaceholder$1
IncrementalSupportVisitor Visiting com/waysay/fragments/DialogFragmentUserProfile$6
IncrementalSupportVisitor Visiting com/waysay/fragments/DialogFragmentUserProfile$1
IncrementalSupportVisitor Visiting com/waysay/fragments/DialogFragmentUserProfile
IncrementalSupportVisitor Visiting com/waysay/fragments/DialogFragmentUserProfile$3
IncrementalSupportVisitor Visiting com/waysay/fragments/FragmentPlaceholder$VerticalSpaceItemDecoration
IncrementalSupportVisitor Visiting com/waysay/fragments/DummyFragment
IncrementalSupportVisitor Visiting com/waysay/fragments/FragmentPlaceholder$3
IncrementalSupportVisitor Visiting com/waysay/constants/WsConstant
IncrementalSupportVisitor Visiting com/waysay/constants/ToolBarCustom$1
IncrementalSupportVisitor Visiting com/waysay/constants/ToolBarCustom
IncrementalSupportVisitor Visiting com/waysay/app/MainActivity$5
IncrementalSupportVisitor Visiting com/waysay/app/MainActivity$2
IncrementalSupportVisitor Visiting com/waysay/app/SplashActivity
IncrementalSupportVisitor Visiting com/waysay/app/MainActivity
IncrementalSupportVisitor Visiting com/waysay/app/MainActivity$1
IncrementalSupportVisitor Visiting com/waysay/app/MainActivity$4
IncrementalSupportVisitor Visiting com/waysay/app/MainActivity$6
IncrementalSupportVisitor Visiting com/waysay/app/MainActivity$3
IncrementalSupportVisitor Visiting com/waysay/app/MainActivity$SectionsPagerAdapter
IncrementalSupportVisitor Visiting com/waysay/helpers/ServiceConnection
IncrementalSupportVisitor Visiting com/waysay/helpers/WebviewFallback
IncrementalSupportVisitor Visiting com/waysay/helpers/KeepAliveService
IncrementalSupportVisitor Visiting com/waysay/helpers/HelperVolley$1
IncrementalSupportVisitor Visiting com/waysay/helpers/CustomTabsHelper
IncrementalSupportVisitor Visiting com/waysay/helpers/HelperVolley
IncrementalSupportVisitor Visiting com/waysay/helpers/HelperPreferences
IncrementalSupportVisitor Visiting com/waysay/helpers/CustomTabActivityHelper
IncrementalSupportVisitor Visiting com/waysay/helpers/WebviewActivity
IncrementalSupportVisitor Visiting android/support/design/R$color
IncrementalSupportVisitor Visiting android/support/design/R$style
IncrementalSupportVisitor Visiting android/support/design/R$attr
IncrementalSupportVisitor Visiting android/support/design/R$dimen
IncrementalSupportVisitor Visiting android/support/design/R$integer
IncrementalSupportVisitor Visiting android/support/design/R$anim
IncrementalSupportVisitor Visiting android/support/design/R
IncrementalSupportVisitor Visiting android/support/design/R$drawable
IncrementalSupportVisitor Visiting android/support/design/R$layout
IncrementalSupportVisitor Visiting android/support/design/R$styleable
IncrementalSupportVisitor Visiting android/support/design/R$id
IncrementalSupportVisitor Visiting android/support/design/R$string
IncrementalSupportVisitor Visiting android/support/design/R$bool
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R$color
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R$style
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R$attr
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R$dimen
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R$integer
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R$anim
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R$drawable
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R$raw
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R$layout
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R$plurals
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R$styleable
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R$id
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R$string
IncrementalSupportVisitor Visiting com/twitter/sdk/android/R$bool
IncrementalSupportVisitor Visiting com/digits/sdk/android/R$color
IncrementalSupportVisitor Visiting com/digits/sdk/android/R$style
IncrementalSupportVisitor Visiting com/digits/sdk/android/R$attr
IncrementalSupportVisitor Visiting com/digits/sdk/android/R$dimen
IncrementalSupportVisitor Visiting com/digits/sdk/android/R$integer
IncrementalSupportVisitor Visiting com/digits/sdk/android/R$anim
IncrementalSupportVisitor Visiting com/digits/sdk/android/R
IncrementalSupportVisitor Visiting com/digits/sdk/android/R$drawable
IncrementalSupportVisitor Visiting com/digits/sdk/android/R$raw
IncrementalSupportVisitor Visiting com/digits/sdk/android/R$layout
IncrementalSupportVisitor Visiting com/digits/sdk/android/R$styleable
IncrementalSupportVisitor Visiting com/digits/sdk/android/R$id
IncrementalSupportVisitor Visiting com/digits/sdk/android/R$string
IncrementalSupportVisitor Visiting com/digits/sdk/android/R$bool
IncrementalSupportVisitor Visiting android/support/v7/cardview/R$color
IncrementalSupportVisitor Visiting android/support/v7/cardview/R$style
IncrementalSupportVisitor Visiting android/support/v7/cardview/R$attr
IncrementalSupportVisitor Visiting android/support/v7/cardview/R$dimen
IncrementalSupportVisitor Visiting android/support/v7/cardview/R
IncrementalSupportVisitor Visiting android/support/v7/cardview/R$styleable
IncrementalSupportVisitor Visiting android/support/v7/appcompat/R$color
IncrementalSupportVisitor Visiting android/support/v7/appcompat/R$style
IncrementalSupportVisitor Visiting android/support/v7/appcompat/R$attr
IncrementalSupportVisitor Visiting android/support/v7/appcompat/R$dimen
IncrementalSupportVisitor Visiting android/support/v7/appcompat/R$integer
IncrementalSupportVisitor Visiting android/support/v7/appcompat/R$anim
IncrementalSupportVisitor Visiting android/support/v7/appcompat/R
IncrementalSupportVisitor Visiting android/support/v7/appcompat/R$drawable
IncrementalSupportVisitor Visiting android/support/v7/appcompat/R$layout
IncrementalSupportVisitor Visiting android/support/v7/appcompat/R$styleable
IncrementalSupportVisitor Visiting android/support/v7/appcompat/R$id
IncrementalSupportVisitor Visiting android/support/v7/appcompat/R$string
IncrementalSupportVisitor Visiting android/support/v7/appcompat/R$bool
IncrementalSupportVisitor Visiting android/support/v7/recyclerview/R$attr
IncrementalSupportVisitor V

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Okay. I don't know how but this worked.

First I cleaned the project and then, running the project made everything go alright.

Inshort, First Clean and then Run.

Edit First Clean and then Make Project also works.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...