GithubHelp home page GithubHelp logo

gradle-profiler's People

Contributors

checkthebounds avatar tufandevrim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tufandevrim

gradle-profiler's Issues

java.lang.NoSuchFieldError: INSTANCE in ndUpload

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.

Support for multiple flavors

Is there any way to upload apks for multiple flavors during a single build?

I've tried the following, but only the first apk gets uploaded since the ndUpload task can run only once during the build.

android.applicationVariants.all { variant ->
    def nimbledroidUpload = task "nimbledroidUpload${variant.name.capitalize()}" << {
        nimbledroid.variant = variant.name
        ndUpload.execute()
    }
    variant.assemble.finalizedBy(nimbledroidUpload)
}

It might be enough to have a public NdUploadTask class, so multiple upload tasks can be created that way:

task "nimbledroidUpload${variant.name.capitalize()}" (type: NdUploadTask) << { ... }

That task should have its own variant property instead of the global one.

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.