Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoSuchFieldError: INSTANCE in ndUpload #6

Open
pijpijpij opened this issue Oct 29, 2016 · 0 comments
Open

java.lang.NoSuchFieldError: INSTANCE in ndUpload #6

pijpijpij opened this issue Oct 29, 2016 · 0 comments

Comments

@pijpijpij
Copy link

I'm running ndUpload with plugin 1.0.9, here is my gradle config:

nimbledroid {
    apiKey <API key>
    variant 'fullRelease'
    mappingUpload false
}

My APK is not obfuscated and that variant fullRelease does exist :).
I tried several things:

  • obsfuscating the APK but the problem is the same.
  • I read on the internet that this error is due to httpcore-4.3 being use but not on the classpath, so I added it at the top of the build script dependencies. That did not have any impact.
    I always encounter this exception:
Caused by: java.lang.NoSuchFieldError: INSTANCE
        at org.apache.http.entity.ContentType.toString(ContentType.java:153)
        at org.apache.http.entity.mime.MultipartFormEntity.<init>(MultipartFormEntity.java:53)
        at org.apache.http.entity.mime.MultipartEntityBuilder.buildEntity(MultipartEntityBuilder.java:236)
        at org.apache.http.entity.mime.MultipartEntity.getEntity(MultipartEntity.java:119)
        at org.apache.http.entity.mime.MultipartEntity.isChunked(MultipartEntity.java:138)
        at org.apache.http.entity.HttpEntityWrapper.isChunked(HttpEntityWrapper.java:74)
        at org.apache.http.protocol.RequestContent.process(RequestContent.java:76)
        at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:108)
        at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:174)
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:462)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:941)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919)
        at groovyx.net.http.HTTPBuilder.doRequest(HTTPBuilder.java:515)
        at groovyx.net.http.HTTPBuilder.doRequest(HTTPBuilder.java:434)
        at groovyx.net.http.HTTPBuilder.request(HTTPBuilder.java:383)
        at groovyx.net.http.HTTPBuilder$request.call(Unknown Source)
        at com.nimbledroid.ProfilerPlugin$_apply_closure1.doCall(ProfilerPlugin.groovy:111)
        at org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:590)
        at org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:571)
        at org.gradle.api.internal.tasks.TaskMutator$1.execute(TaskMutator.java:77)
        at org.gradle.api.internal.tasks.TaskMutator$1.execute(TaskMutator.java:73)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
        ... 68 more

Hopefully this helps you find the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant