Coder Social home page Coder Social logo

Comments (2)

serdar-can avatar serdar-can commented on May 26, 2024

Hi @BombeyR , thank you for reporting the issue.

com/huawei/secure/android/common/ssl/R.class is a class that included in Huawei dependencies. Can you please share your build.gradle files located in the project-root/android and project-root/android/app folders alongside with Huawei plugins that you used in your project, which you may find in pubspec.yaml file of your project? Providing a minimal, reproducible project can also be helpful.

We will investigate the issue and suggest a workaround as soon as possible. Meanwhile, you may try running flutter clean and flutter run commands, and also, from Android Studio you may try to invalidate caches and restart and clean the project using Build > Clean Project.

from hms-flutter-plugin.

serdar-can avatar serdar-can commented on May 26, 2024

Hi @BombeyR ,

As mentioned earlier com/huawei/secure/android/common/ssl/R.class is a class that included in HMS dependencies, and may conflict with each other in certain circumstances. As a workaround, you may bump the version of HMS Map Kit SDK's version (4.0.1.300) to 4.0.1.301.

The update steps are as follows:

  • Locate the huawei_map folder of your project.
    • You may find plugin folders using Android Studio's External Libraries > Flutter Plugins section.
    • Or you may find plugin folders from .../flutter/.pub-cache/hosted/pub.dartlang.org/huawei_map-4.0.4+300 directory.
  • Locate Huawei Map Flutter Plugin's android/build.gradle file.
  • Update the version of HMS Map SDK's version to 4.0.1.301.
    ...
    
    dependencies {
     implementation 'com.huawei.hms:maps:4.0.1.300' //Change this version to 4.0.1.301 
    }

After changing the plugin file, please do not forget to Invalidate Caches and Restart the project using Android Studio.

The mentioned issue is in our update scope, we will provide a permanent solution with our next major release.

Additionally, the followings may cause issues in later development:

  • apply plugin: 'com.huawei.agconnect' line should below other apply entries.
  • The HMS dependencies in your project-root/android/app/build.gradle are not needed if you didn't implement platform-specific code in your project using HMS dependencies. HMS Flutter Plugins includes their own.
  • Keeping the minSdkVersion at 19 might cause issues while using multidex. You may want to increase the version to 21. For information about the issue and its solution please refer to this StackOverflow issue.

from hms-flutter-plugin.

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.