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

allowBackup的问题 #22

Closed
daliyan opened this issue Aug 10, 2017 · 4 comments
Closed

allowBackup的问题 #22

daliyan opened this issue Aug 10, 2017 · 4 comments

Comments

@daliyan
Copy link

daliyan commented Aug 10, 2017

SDK里面不应该去设置这个属性,应该用占位符的形式来做tools:replace="android.allowBackup"
具体报错信息如下:

Error:Execution failed for task ':XXX:processDebugManifest'.
> Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:90:9-36
  	is also present at [com.tencent.sonic:sdk:1.0.0] AndroidManifest.xml:12:9-35 value=(true).
  	Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:88:5-1746:19 to override.
@vasdeveloper
Copy link
Collaborator

这里SDK默认设置,如果你的项目出现同样属性,却设置了不同值时,你可以在你项目中添加 tools:replace="allowBackup,supportsRtl" 来强制使用你项目中的属性

@JakeWoki
Copy link

sdk删掉application不是更好吗

@Dwan-xie
Copy link

tools:replace="allowBackup" 会导致4.2系统的手机,recyclerview的性能下降。实测有坑! @vasdeveloper

@vasdeveloper
Copy link
Collaborator

@Dwan-xie 我们会在1.1版本中移除该属性。

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

4 participants