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

Android 10 and lower exception #26

Open
MoeHamdan opened this issue Jan 3, 2023 · 13 comments
Open

Android 10 and lower exception #26

MoeHamdan opened this issue Jan 3, 2023 · 13 comments

Comments

@MoeHamdan
Copy link

MoeHamdan commented Jan 3, 2023

Hello

I am getting this error for Android 10 and lower.

java.lang.NoSuchMethodError: No virtual method getSubscriptionId()I in class Landroid/telephony/TelephonyManager; or its super classes (declaration of 'android.telephony.TelephonyManager' appears in /system/framework/framework.jar!classes2.dex).

Also why did not you set the version to 3 upon doing the breaking changes?

Thanks,

@VitaliBov
Copy link

+1

4 similar comments
@weter120
Copy link

+1

@PepelyaevDev
Copy link

+1

@Madico18
Copy link

+1

@abddery
Copy link

abddery commented Jan 26, 2023

+1

@pitazzo
Copy link

pitazzo commented Feb 17, 2023

+1, any new on this? Any lower version of the plugin works on Android 10?

@abdulmalekDery
Copy link

No it will not be supported anymore because Android policy blocked the access to that content

@Komche
Copy link

Komche commented Mar 18, 2023

I have the same issue, someone have a solution ?

@onghuisheng
Copy link
Contributor

Hello

I am getting this error for Android 10 and lower.

java.lang.NoSuchMethodError: No virtual method getSubscriptionId()I in class Landroid/telephony/TelephonyManager; or its super classes (declaration of 'android.telephony.TelephonyManager' appears in /system/framework/framework.jar!classes2.dex).

Also why did not you set the version to 3 upon doing the breaking changes?

Thanks,

should be fixed on the latest commit in main

@kirqe
Copy link

kirqe commented Sep 1, 2023

@onghuisheng when do you plan to publish it to pub.dev?

@Zfinix

@onghuisheng
Copy link
Contributor

onghuisheng commented Sep 1, 2023

@onghuisheng when do you plan to publish it to pub.dev?

@Zfinix

The author seems to be inactive, my pull request is also still pending.

Meanwhile you can try using my fork with the fixes by updating pubspec.yaml. More info here.

Fork link.

@kirqe
Copy link

kirqe commented Sep 6, 2023

Also, the values in telephonyInfo are always empty on android 10. Works for 13 though

List (1 item)
[0]:
TelephonyInfo (TelephonyInfo(networkCountryIso: , mobileCountryCode: , mobileNetworkCode: , displayName: , simState: , isoCountryCode: , cellId: CellId(cid: 0, lac: 0), phoneNumber: , carrierName: , subscriptionId: 0, networkGeneration: , radioType: , networkOperatorName: ))
carrierName: ""
cellId:
CellId (CellId(cid: 0, lac: 0))
displayName: ""
isoCountryCode:""
mobileCountryCode:""
mobileNetworkCode:""
networkCountryIso:""
networkGeneration:""
networkOperatorName:""
phoneNumber:""
radioType:""
simState:""
subscriptionId:0
hashCode:1
runtimeType:

edit:
Ended up not using this package

@Cannon99
Copy link

Hey guys, i have forked and adjusted that bugs and handled the library for android 6.0 and higher. I have ignored the cellId field, but the library worked for all android devices on my tests. Feel free to take a look.

https://github.com/Cannon99/carrier_info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests