【仅供内部供应商使用,不提供对外解答和培训】

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

  1. 问题描述:View在findViewById之后返回null,造成空指针错误。
    解决方法:客户的资源文件名与SDK中的资源文件名同名,造成引用了错误的layout文件。

  2. 问题描述:SDK在精简掉部分模块之后遇到创建对象或者reciever失败的BUG。
    解决方法:删掉Manifest文件中被删除的模块对应的注册信息。

  3. 问题描述:AndroidManifest 文件 merge失败
    解决方法:在清单文件的application标签中添加属性 
     tools:replace="android:allowBackup, android:label, android:icon, android:theme"
    替换FR SDK清单文件中的相关属性值

  4. 问题描述:android support库中的类、方法、属性等重复定义,导致merge失败
    解决方法:使用gradle exclude方法,排除FR SDK中的相关依赖

     

    排除依赖
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:recyclerview-v7:25.3.1'
    compile 'com.google.zxing:core:3.1.0'
    
    compile('com.fr.android:report-sdk:+', {
        exclude group: 'com.android.support', module: 'appcompat-v7'
        exclude group: 'com.android.support', module: 'recyclerview'
        exclude group: 'com.google.zxing', module:'core'
    })
    compile('com.fr.android:bi-sdk:+', {
        exclude group: 'com.android.support', module: 'appcompat-v7'
        exclude group: 'com.android.support', module: 'recyclerview'
        exclude group: 'com.google.zxing', module:'core'
    })
  5. 问题描述:不同版本库混用导致应用奔溃

    解决方法:同上

  6. 问题描述: 

    import com.fr.android.activity.IFOEMUtils
    import com.fr.android.utils.IFContextManager
    import com.fr.android.app.IFOptionsHelper
    等类似的包找不到符号或者不存在

          解决方法:  从8.4.18版本开始, 相关的类分离到了platform模块, 所以此部分类需要重新引入正确包位置.

 

  • No labels