Coder Social home page Coder Social logo

Comments (9)

liguangze avatar liguangze commented on June 26, 2024

在清单文件中静态注册权限的时候,不要带上 maxSdkVersion 属性,这样就不会触发框架的检测异常

在权限申请的时候,调用 .unchecked() 方法,表示不会进行任何权限检查,这样就不会触发框架的检测异常

解决办法是这两个,可我清单文件中静态注册权限的时候,根本没有带上 maxSdkVersion 属性。为什么提示我这个呢,
而且之前一直在用,都没有问题,就今天开始报错了

from xxpermissions.

getActivity avatar getActivity commented on June 26, 2024

你反编译 apk 看一下 AndroidManifest.xml 是否有加 maxSdkVersion 属性?

from xxpermissions.

liguangze avatar liguangze commented on June 26, 2024

111
反编译之后的结果,并没有maxSdkVersion这个属性呢

from xxpermissions.

getActivity avatar getActivity commented on June 26, 2024
image

from xxpermissions.

getActivity avatar getActivity commented on June 26, 2024

你测试过了最新版本也有这个问题?

from xxpermissions.

liguangze avatar liguangze commented on June 26, 2024

是了一下,新版本也是不行,但是我打成正式包没有问题,我运行正式包就会有这个问题,混淆的原因?

from xxpermissions.

getActivity avatar getActivity commented on June 26, 2024

是了一下,新版本也是不行,但是我打成正式包没有问题,我运行正式包就会有这个问题,混淆的原因?

这是因为检测机制只在 Debug 包下生效,Release 包下不会生效。

from xxpermissions.

getActivity avatar getActivity commented on June 26, 2024

@liguangze 你把项目的框架升级到最新版本,然后打一个 apk 上传到这里,并告知 App 上面的复现步骤,我这边来复现一下问题。

from xxpermissions.

liguangze avatar liguangze commented on June 26, 2024

感谢开源,不纠结这个问题了,添加这个方法 .unchecked() 方法可以解决

from xxpermissions.

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.