问题标签 [react-native-device-info]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
15 浏览

android - 我无法在 react-native Android11 中获得 MacAddress,我正在使用 react-native-device-info

我正在处理本机 android 应用程序。我正在使用 react-native-device 信息来获取 macAddress。如果我添加 Android 10/9 移动设备进行测试(调试),那么我得到了 macAddress,但是当我连接 Android 11 时,我没有得到任何响应。

AndroidMenifest.xml

安卓/build.gradle

android/app/build.gradle