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

你好,现在遇到一个问题,当项目当中使用walle之后再集成ali实人认证sdk之后会出现冲突 #356

Open
futureLix opened this issue Jan 7, 2021 · 2 comments

Comments

@futureLix
Copy link

futureLix commented Jan 7, 2021

比如,下面的代码是ali实人认证sdk要求的格式,尤其是在gradle当中写入v1和v2配置

release {
            // 使用代码前,请将如下内容替换为您的release签名文件。
            storeFile file('您的storeFile')
            storePassword "您的存储密码"
            keyAlias "您的keyAlias"
            keyPassword "您的keyPassword"

            v1SigningEnabled true
            v2SigningEnabled true
        }
        debug {
            // 使用代码前,请将如下内容替换为您的debug签名文件。
            storeFile file('您的storeFile')
            storePassword "您的存储密码"
            keyAlias "您的keyAlias"
            keyPassword "您的密码keyPassword"

            v1SigningEnabled true
            v2SigningEnabled false
        }

这样的话再次编译就会发声未知错误,并且没有错误信息任何,如下:

> java.lang.NullPointerException (no error message)

或者说是在集成walle之后,在gradle配置文件当中就不能出现v1和v2的配置参数

不知,二者集成到一起,有什么更好的解决方案吗?

@ongakuer
Copy link

这样配置的,打包没出现问题

signingConfigs {
    release {
        // 省略其他配置
        v1SigningEnabled true
        v2SigningEnabled true
    }
}


buildTypes {
        debug {
            // 省略
            signingConfig signingConfigs.release
        }
        release {
            // 省略其他配置
            signingConfig signingConfigs.release
        }
}

@qwer2y
Copy link

qwer2y commented Mar 6, 2023

碰到一样的问题了,请问如何解决的?

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

3 participants