Git Product home page Git Product logo

When trying to connect I'm getting java.lang.NoSuchMethodException: <init> [class com.mbientlab.metawear.impl.DefaultMetaWearBoard, byte, byte], can you guys help? Stacktrace and code sample is below about metawear-sdk-android HOT 9 CLOSED

petrnalevka avatar petrnalevka commented on July 20, 2024
When trying to connect I'm getting java.lang.NoSuchMethodException: [class com.mbientlab.metawear.impl.DefaultMetaWearBoard, byte, byte], can you guys help? Stacktrace and code sample is below

from metawear-sdk-android.

Comments (9)

scaryghost avatar scaryghost commented on July 20, 2024

Couple of questions to help debug:

  • What MetaWear board are you using?
  • What is the firmware revision?
  • What is your development environment?
    • jdk, ide, etc.
  • Can you connect to the board with the MetaWear sample app?

from metawear-sdk-android.

petrnalevka avatar petrnalevka commented on July 20, 2024

Many thanks for getting back to me. I tried both sample apps the very
simple one included in the Android API as well as the official Sample app
both built from sources and they both work well.

Tried to compare the code line by line and it seems identical. I tried to
embed your sample activity from the library project directly into my app
and it has the same problem. I use the same targetSdk in my app has the
right dependency to library 2.3.0.. Do you have any ideas or hints what I
could try?

Board: MetaWear R
FW: 1.1.0
IDE: Android Studio

Thank you very much.

Best regards,

Petr

On Fri, Jan 8, 2016 at 1:07 PM, Eric Tsai [email protected] wrote:

Couple of questions to help debug:

  • What MetaWear board are you using?
  • What is the firmware revision?
  • What is your development environment?
  • jdk, ide, etc.
    • Can you connect to the board with the MetaWear sample app?


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

from metawear-sdk-android.

petrnalevka avatar petrnalevka commented on July 20, 2024

Sorry, I think I know the issue, it is probably a proguard problem, sorry
about posting a false alert..

Thank you very much.

Best regards,

Petr

On Fri, Jan 8, 2016 at 1:51 PM, Petr Nalevka [email protected] wrote:

Many thanks for getting back to me. I tried both sample apps the very
simple one included in the Android API as well as the official Sample app
both built from sources and they both work well.

Tried to compare the code line by line and it seems identical. I tried to
embed your sample activity from the library project directly into my app
and it has the same problem. I use the same targetSdk in my app has the
right dependency to library 2.3.0.. Do you have any ideas or hints what I
could try?

Board: MetaWear R
FW: 1.1.0
IDE: Android Studio

Thank you very much.

Best regards,

Petr

On Fri, Jan 8, 2016 at 1:07 PM, Eric Tsai [email protected]
wrote:

Couple of questions to help debug:

  • What MetaWear board are you using?
  • What is the firmware revision?
  • What is your development environment?
  • jdk, ide, etc.
    • Can you connect to the board with the MetaWear sample app?


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

from metawear-sdk-android.

petrnalevka avatar petrnalevka commented on July 20, 2024

Just a suggestion, maybe you want to add some implicit proguard rules to
your sample project. Many thanks for your help on this..

Thank you very much.

Best regards,

Petr

On Fri, Jan 8, 2016 at 2:01 PM, Petr Nalevka [email protected] wrote:

Sorry, I think I know the issue, it is probably a proguard problem, sorry
about posting a false alert..

Thank you very much.

Best regards,

Petr

On Fri, Jan 8, 2016 at 1:51 PM, Petr Nalevka [email protected] wrote:

Many thanks for getting back to me. I tried both sample apps the very
simple one included in the Android API as well as the official Sample app
both built from sources and they both work well.

Tried to compare the code line by line and it seems identical. I tried to
embed your sample activity from the library project directly into my app
and it has the same problem. I use the same targetSdk in my app has the
right dependency to library 2.3.0.. Do you have any ideas or hints what I
could try?

Board: MetaWear R
FW: 1.1.0
IDE: Android Studio

Thank you very much.

Best regards,

Petr

On Fri, Jan 8, 2016 at 1:07 PM, Eric Tsai [email protected]
wrote:

Couple of questions to help debug:

  • What MetaWear board are you using?
  • What is the firmware revision?
  • What is your development environment?
  • jdk, ide, etc.
    • Can you connect to the board with the MetaWear sample app?


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

from metawear-sdk-android.

biospank avatar biospank commented on July 20, 2024

Hi Petr,
I'm having the same issue. How did you fixed that?
Please can you help me to figure out what's the problem?

Thanks

from metawear-sdk-android.

petrnalevka avatar petrnalevka commented on July 20, 2024

Sorry, we did abandon the idea to use META Wear for our project so I could
not spend more time on this. But I believe this is somehting which needs to
fixed in the Metawear Android API - I expect a simple null check..

Thank you very much.

Best regards,

Petr

On Sun, Jan 31, 2016 at 8:35 PM, Fabio Petrucci [email protected]
wrote:

Hi Petr,
I'm having the same issue. How did you fixed that?
Please can you help me to figure out what's the problem?

Thanks


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

from metawear-sdk-android.

scaryghost avatar scaryghost commented on July 20, 2024

Do you have any proguard rules? The library uses some reflection which can be broken from proguard obfuscation.

from metawear-sdk-android.

petrnalevka avatar petrnalevka commented on July 20, 2024

Sorry I though you are referring to the other issue I posted, for this one I used:

-keep class com.mbientlab.** { *; }

in proguard.cfg

from metawear-sdk-android.

biospank avatar biospank commented on July 20, 2024

I had to use:

buildTypes {
        release {
            minifyEnabled false
        }
    }

to avoid proguard remove needed class.

trying petrnalevka solution and see what happen.

Thanks.

from metawear-sdk-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.