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

[Bug]: getInstallerPackageName is depricated #1598

Closed
7 tasks done
kabirnayeem99 opened this issue Mar 5, 2023 · 2 comments · Fixed by #1616
Closed
7 tasks done

[Bug]: getInstallerPackageName is depricated #1598

kabirnayeem99 opened this issue Mar 5, 2023 · 2 comments · Fixed by #1616
Labels
package_info_plus stuff related to package_info_plus triage

Comments

@kabirnayeem99
Copy link

Platform

Android SDK version 33.0.1

Plugin

package_info_plus

Version

3.0.3

Flutter SDK

3.7.5

Steps to reproduce

  1. Open the flutter project android module with Android Studio.
  2. Build > Make the project.
  3. It will generate a warning like this:
w: /Users/maxcode-pc3/.pub-cache/hosted/pub.dev/package_info_plus-3.0.3/android/src/main/kotlin/dev/fluttercommunity/plus/packageinfo/PackageInfoPlugin.kt: (41, 55): 'getInstallerPackageName(String): String?' is deprecated. Deprecated in Java

Code Sample

No response

Logs

w: /Users/maxcode-pc3/.pub-cache/hosted/pub.dev/package_info_plus-3.0.3/android/src/main/kotlin/dev/fluttercommunity/plus/packageinfo/PackageInfoPlugin.kt: (41, 55): 'getInstallerPackageName(String): String?' is deprecated. Deprecated in Java

Flutter Doctor

[✓] Flutter (Channel stable, 3.7.5, on macOS 13.2.1 22D68 darwin-arm64, locale en-BD)
    • Flutter version 3.7.5 on channel stable at /Users/maxcode-pc3/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c07f788888 (10 days ago), 2023-02-22 17:52:33 -0600
    • Engine revision 0f359063c4
    • Dart version 2.19.2
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/maxcode-pc3/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: /opt/homebrew/Cellar/openjdk/19.0.2/libexec/openjdk.jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment Homebrew (build 19.0.2)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.12.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.75.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (3 available)
    • sdk gphone arm64 (mobile) • emulator-5554 • android-arm64  • Android 11 (API 30) (emulator)
    • macOS (desktop)           • macos         • darwin-arm64   • macOS 13.2.1 22D68 darwin-arm64
    • Chrome (web)              • chrome        • web-javascript • Google Chrome 107.0.5304.87

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

Checklist before submitting a bug

  • I Google'd a solution and I couldn't find it
  • I searched on StackOverflow for a solution and I couldn't find it
  • I read the README.md file of the plugin
  • I'm using the latest version of the plugin
  • All dependencies are up to date with flutter pub upgrade
  • I did a flutter clean
  • I tried running the example project
@kabirnayeem99 kabirnayeem99 added bug Something isn't working triage labels Mar 5, 2023
@vijaykarthiktk
Copy link

This warning does not necessarily indicate an error or a bug, but rather a suggestion to update the code to use a newer method. However, if you encounter any issues related to this warning, you can try to update the package_info_plus plugin to a newer version, if available, or reach out to the plugin's maintainer for further assistance.

@vbuberen
Copy link
Collaborator

vbuberen commented Mar 5, 2023

It is not a bug and provided log entry is just a warning. There was some deprecations in one of Android versions, but it deprecation isn't a bug.

@vbuberen vbuberen added package_info_plus stuff related to package_info_plus and removed bug Something isn't working labels Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package_info_plus stuff related to package_info_plus triage
Projects
None yet
3 participants