Code Monkey home page Code Monkey logo

Comments (11)

andrei-shevelev avatar andrei-shevelev commented on July 18, 2024 1

I'm going to close this issues as there's no reply. It seems that the the reason is with SDK versions incompatibility. Mapbox SDKs are compatible only if used Common SDK versions are compatible by SEMVER rules. Used in the SDK Common SDK versions are specified in release notes:

Also, the reason might be similar to what's described in this issue mapbox/mapbox-maps-android#1173 (comment).

I tried to create a similar configuration in a small project, and everything worked correctly for me. Then I started trying again all the tips from the mapbox repositories to fix similar problems. And it looks like the problem was in the initialization order of the component. Perhaps the first time I did not apply this advice carefully enough, but the second time the problem was fixed.
As a result, as you wrote, the solution was to manage the initialization of the mapbox component manually.
(mapbox/mapbox-maps-android#1173 (comment))

from mapbox-search-android.

DzmitryFomchyn avatar DzmitryFomchyn commented on July 18, 2024

Hey @andrei-shevelev,

Mapbox Version: 10.5.0

Do you mean Mapbox Maps SDK here?

ANR android 12

The log you attached is not about ANR. Did you mean other crash in the title?

from mapbox-search-android.

andrei-shevelev avatar andrei-shevelev commented on July 18, 2024

Hey @andrei-shevelev,

Mapbox Version: 10.5.0

Do you mean Mapbox Maps SDK here?

ANR android 12

The log you attached is not about ANR. Did you mean other crash in the title?

Yes I meant Mapbox Maps SDK
That's right, it's not ANR, it's RuntimeException

from mapbox-search-android.

DzmitryFomchyn avatar DzmitryFomchyn commented on July 18, 2024

@andrei-shevelev,
Do you force any mapbox related libraries to a specific version? From the crash log it seems that the issue is in incompatibility of a common SDK that is used in both Search and Maps SDK.

Check Search SDK sample app https://github.com/mapbox/mapbox-search-android/tree/v1.0.0-beta.30, it uses Maps SDk 10.5.0. I'm curious if it works on your device.

from mapbox-search-android.

DzmitryFomchyn avatar DzmitryFomchyn commented on July 18, 2024

@andrei-shevelev,
Any updates here, do you still can see this crash? Waiting for the details.

from mapbox-search-android.

DzmitryFomchyn avatar DzmitryFomchyn commented on July 18, 2024

I'm going to close this issues as there's no reply.
It seems that the the reason is with SDK versions incompatibility. Mapbox SDKs are compatible only if used Common SDK versions are compatible by SEMVER rules. Used in the SDK Common SDK versions are specified in release notes:

Also, the reason might be similar to what's described in this issue mapbox/mapbox-maps-android#1173 (comment).

from mapbox-search-android.

andrei-shevelev avatar andrei-shevelev commented on July 18, 2024

@andrei-shevelev, Do you force any mapbox related libraries to a specific version? From the crash log it seems that the issue is in incompatibility of a common SDK that is used in both Search and Maps SDK.

Check Search SDK sample app https://github.com/mapbox/mapbox-search-android/tree/v1.0.0-beta.30, it uses Maps SDk 10.5.0. I'm curious if it works on your device.

In the sample application from this repository everything works correctly, I switched to different commits 1.0.0-beta.30...1.0.0-beta.32
We can also say that there is no deliberate downgrade or upgrade of mapbox libraries in our project. Although I tried to solve this problem this way, unsuccessfully.

from mapbox-search-android.

andrei-shevelev avatar andrei-shevelev commented on July 18, 2024

I'm going to close this issues as there's no reply. It seems that the the reason is with SDK versions incompatibility. Mapbox SDKs are compatible only if used Common SDK versions are compatible by SEMVER rules. Used in the SDK Common SDK versions are specified in release notes:

Also, the reason might be similar to what's described in this issue mapbox/mapbox-maps-android#1173 (comment).

I tried combinations of exactly compatible sdks from your example. The solution described in another issue was also tried.
Perhaps some configuration of our project makes it break, something in the compatibility of libraries. I'll let you know when I can reproduce this on some other example.

from mapbox-search-android.

DzmitryFomchyn avatar DzmitryFomchyn commented on July 18, 2024

Thanks for the reply!
It would be very helpful if you could create a minimum project that shows this error.

from mapbox-search-android.

andrei-shevelev avatar andrei-shevelev commented on July 18, 2024

Thank you, I think you can close the issue

from mapbox-search-android.

DzmitryFomchyn avatar DzmitryFomchyn commented on July 18, 2024

Thanks for checking!

from mapbox-search-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.