Git Product home page Git Product logo

Comments (37)

 avatar commented on May 29, 2024 1

Ok i solved by changing in Project build.grandle classpath 'com.android.tools.build:gradle:+' with classpath 'com.android.tools.build:gradle:1.3.0'

from braintree_android.

braebot avatar braebot commented on May 29, 2024 1

The issue is with the 1.4.0-beta6 build tools not supporting classes that are only different through different capitalization. The PayPal SDK has classes named both A.class and a.class, yet the intermediate extraction step skips files that it thinks are duplicates. I'll need to open a bug with the build tools folks.

from braintree_android.

quinnjn avatar quinnjn commented on May 29, 2024

Hey, can you give a little more detail on how you got this? Also, can you try to a Rebuild project?

from braintree_android.

 avatar commented on May 29, 2024

I've this problem too. I have it when i try to built and run my app. A tried to rebuild and clean my project, but without success. I have this problem since a week.

from braintree_android.

quinnjn avatar quinnjn commented on May 29, 2024

I put together a blank 'Hello, Client!' project. I didn't have any issues building, and running it.

This was using the latest version:
compile 'com.braintreepayments.api:braintree:1.6.5'

from braintree_android.

anilkumarGL avatar anilkumarGL commented on May 29, 2024

Me too facing the same problem. I have just updated to latest android 23 and the problem started...
Exactly since a week...

UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Exception parsing classes
    at com.android.dx.command.dexer.Main.processClass(Main.java:752)
    at com.android.dx.command.dexer.Main.processFileBytes(Main.java:718)
    at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
    at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1645)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:170)
    at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
    at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
    at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
    at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
    at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
    at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
    at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
    at com.android.dx.command.dexer.Main.processOne(Main.java:672)
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
    at com.android.dx.command.dexer.Main.run(Main.java:277)
    at com.android.dx.command.dexer.Main.main(Main.java:245)
    at com.android.dx.command.Main.main(Main.java:106)
Caused by: com.android.dx.cf.iface.ParseException: class name (com/paypal/android/sdk/a) does not match path (com/paypal/android/sdk/A.class)
    at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:520)
    at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
    at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
    at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
    at com.android.dx.command.dexer.Main.parseClass(Main.java:764)
    at com.android.dx.command.dexer.Main.access$1500(Main.java:85)
    at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1684)
    at com.android.dx.command.dexer.Main.processClass(Main.java:749)
    ... 21 more

from braintree_android.

gbramwell avatar gbramwell commented on May 29, 2024

We're sorry you're running into problems. We'll need a little help reproducing this issue. What is your build environment (OS, version of Android Studio / Gradle, etc)?

We do not technically support Eclipse, but whatever your environment we'll do our best to replicate and solve your issue.

from braintree_android.

anilkumarGL avatar anilkumarGL commented on May 29, 2024

Hi

My Build Environment
Machine: Mac OS 10.10.3
Android studio: 1.4 Beta 4
Gradle: 2.2.1
Android version: 23

Regards
Anil

On 18 September 2015 at 20:32, Gary Bramwell [email protected]
wrote:

We're sorry you're running into problems. We'll need a little help
reproducing this issue. What is your build environment (OS, version of
Android Studio / Gradle, etc)?

We do not technically support Eclipse, but whatever your environment we'll
do our best to replicate and solve your issue.


Reply to this email directly or view it on GitHub
#48 (comment)
.

from braintree_android.

 avatar commented on May 29, 2024

My Build Environment
Machine: Mac OS 10.10.5
Android studio: 1.3.2 Build 141.2178183
Android SDK Tools: 24.3.4
Android SDK Platform-tools: 23.0.1
Android SDK Build-tools: 23.0.1

I already used latest version 1.6.5, but this problem occured also with 1.6.4. Maybe is a Paypal API problem.

from braintree_android.

gbramwell avatar gbramwell commented on May 29, 2024

Are you using Proguard on your project? If so, it would be useful to see what your proguard-rules.pro looks like.

We haven't seen this particular problem before with the PayPal SDK, but that doesn't rule out issues.

from braintree_android.

anilkumarGL avatar anilkumarGL commented on May 29, 2024

No. It also happens in the debug environment too, where we don't use default proguard as well...
It is happening recently. May be due to recent android 23 environment?, I don't know the root cause why it is happening...

from braintree_android.

 avatar commented on May 29, 2024

Yes It happens in the debug environment for me too, recently

from braintree_android.

anilkumarGL avatar anilkumarGL commented on May 29, 2024

Ah, I have tried that
classpath 'com.android.tools.build:gradle:1.3.0'
but didn't work for me. Same error...

from braintree_android.

anilkumarGL avatar anilkumarGL commented on May 29, 2024

I think I found some trigger that could probably give a perspective:
Since, this error is happening recently and also while executing ":app:transformClassesWithDexForVersion2Debug"
According to this link: http://tools.android.com/tech-docs/new-build-system,
there are recent changes made in 1.4.0-beta2 (released on 15 Sep 2015) - something related to transform API.
I think may be the braintree lib packaging need to be taken care ?

from braintree_android.

fahimk avatar fahimk commented on May 29, 2024

Seeing the same issue. I just updated platform/sdk tools and I'm using com.android.tools.build:gradle:1.4.0-beta5

from braintree_android.

lkorth avatar lkorth commented on May 29, 2024

Please let us know if you are still experiencing this issue with the recently released 1.7.0.

from braintree_android.

fahimk avatar fahimk commented on May 29, 2024

I'm seeing the same issue with 1.7.0 of the braintree sdk when using 1.4.0-beta5 build tools. If I switch back to 1.3.1 build tools, it works fine.

from braintree_android.

lkorth avatar lkorth commented on May 29, 2024

We have confirmed this issue is caused by com.android.tools.build:gradle:1.4.0-beta2 or greater, you should be fine using 1.3.1 or 1.4.0-beta1. We are investigating further, but there is a good chance the answer will be to wait for the stable release of 1.4.0.

Thanks everyone for the report and information.

from braintree_android.

fred8 avatar fred8 commented on May 29, 2024

Same issue here with braintree-api:1.7.1 and com.android.tools.build:gradle:1.4.0-beta6
Please guys, update.

from braintree_android.

lkorth avatar lkorth commented on May 29, 2024

@fred8: please see the previous comment. 1.4.0 is in beta for a reason, it isn't stable at this point.

from braintree_android.

braebot avatar braebot commented on May 29, 2024

See this tools issue already tracking the problem.

from braintree_android.

gcalaprice avatar gcalaprice commented on May 29, 2024

Hi, I faced that there was a conflict issue with Google Play Service plugin.
Removing classpath 'com.google.gms:google-services:1.4.0-beta3' from my top-level build.gradle, solved the issue and the app builds correctly. But this is not a solution because I need Google Play Service plugin for GCM and Analytics integration..

from braintree_android.

lkorth avatar lkorth commented on May 29, 2024

@gcalaprice if com.google.gms.google-services:1.4.0-beta3 uses com.android.tools.build:gradle:1.4.0-beta3 or higher you're going to receive this exception. There is a bug filed with the Android tools team. This issue will need to wait until the bug is fixed and 1.4.0 is released as stable.

from braintree_android.

plastiv avatar plastiv commented on May 29, 2024

Another option would be to not use classes that are only different by letter capitalization with
-dontusemixedcaseclassnames option for proguard.

from braintree_android.

braebot avatar braebot commented on May 29, 2024

Agreed about the proguard workaround. At the suggestion of @plastiv, we'll go ahead and do this, and publish a new PayPal release sometime shortly (few days). We have other Android 23 changes coming too that we'd like to deliver with that, so please understand the delay.

from braintree_android.

chrisharris77 avatar chrisharris77 commented on May 29, 2024

I see there was a 2.11.0 PayPal SDK release using -dontusemixedcaseclassnames. When will there be a Braintree SDK please which uses this version?

from braintree_android.

adamvarhegyi avatar adamvarhegyi commented on May 29, 2024

Same issue here. Can you tell me when the updates for braintree is coming? Because i won't use the proguard workaround if it is coming early, like tomorrow or something.

from braintree_android.

lkorth avatar lkorth commented on May 29, 2024

The 2.11.0 version of the PayPal SDK was released using -dontusemixedcaseclassnames, however it also changed the minSdk to 11. We're currently waiting on another release that will have a minSdk of 10 or lower so braintree_android can be updated with it. The PayPal release should be out later today or tomorrow so an update to braintree_android will be forthcoming tomorrow.

from braintree_android.

lkorth avatar lkorth commented on May 29, 2024

braintree_android 1.7.2 was just released with a version of the PayPal SDK that uses -dontusemixedcaseclassnames to fix this.

It should be available on maven in a few hours.

from braintree_android.

adamvarhegyi avatar adamvarhegyi commented on May 29, 2024
I got the very same error with latest braintree update (1.7.2)

Here is my build.gradle file:

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com.illion.dotodo.application.courier"
        minSdkVersion 19
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'}
    }
}

repositories { mavenCentral() }
dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.braintreepayments.api:braintree:1.7.2'
    compile project(':DoToDoEssentials')
}

Error is:

UNEXPECTED TOP-LEVEL EXCEPTION:
Error:com.android.dx.cf.iface.ParseException: class name (com/paypal/android/sdk/a) does not match path (com/paypal/android/sdk/A.class)

... and so on for many classes in paypal SDK.

from braintree_android.

anilkumarGL avatar anilkumarGL commented on May 29, 2024

Hi

There is absolutely no problem in your build.gradle file,
but the problem with the top level gradle file at
project_root->build.gradle.
You need to use the gradle version <=1.3.1 like the one below:

// Top-level build file where you can add configuration options common
to all sub-projects/modules.

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.1'

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

}

allprojects {
repositories {
jcenter()
}
}

from braintree_android.

chrisharris77 avatar chrisharris77 commented on May 29, 2024

1.7.2 resolves the problem for me (using android grade plugin 1.4.0-beta6).

from braintree_android.

adamvarhegyi avatar adamvarhegyi commented on May 29, 2024

@anilkumarGL I do have gradle 1.3.1 so the problem is lays elsewhere. I just realized you wrote previously that if a project contians

'com.google.gms:google-services:1.4.0-beta3'

Then this error will still present. Actually i do use google play services. Is there no workaround to make braintree android sdk work with google play services? Maybe previous builds or something..?

from braintree_android.

anilkumarGL avatar anilkumarGL commented on May 29, 2024

@adamvarhegyi , for me this is working fine for me..
classpath 'com.google.gms:google-services:+'

from braintree_android.

lkorth avatar lkorth commented on May 29, 2024

@adamvarhegyi have you synced and cleaned/rebuilt your project? There is no longer an A.class in PayPal.

from braintree_android.

adamvarhegyi avatar adamvarhegyi commented on May 29, 2024

Thanks guys for all the help, i had 2 problems the first was solved with the new braintree sdk release.
The second was because of "Apps with Over 65K Methods" : https://developer.android.com/tools/building/multidex.html

The release is working perfectly, thanks for your time.

from braintree_android.

enriqif avatar enriqif commented on May 29, 2024

Ok i solved by changing in Project build.grandle classpath 'com.android.tools.build:gradle:+' with classpath 'com.android.tools.build:gradle:1.3.0'

Thank you sooooo much!! you giveme a clue to solve my problem

from braintree_android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.