DreamCamera2移植AndroidStudio指南-简洁版

1.Duplicate resources --> pref_camera_filter_display_key_array

    <!--
    <integer-array name="pref_camera_filter_display_key_array">
        <item>@string/pref_camera_filter_display_key</item>
        <item>@integer/storage_position_category_bf</item>
        <item>@string/preference_switch_item_default_value_false</item>
        <item>@array/preference_camera_switch_entryvalues</item>
        <item>@array/preference_camera_switch_entryvalues</item>
    </integer-array>
    -->

2.Transform’s input file does not exist: …DreamCamera2studio_libsandroid-ex-camera2-utils.jar

out/soong/.intermediates/frameworks/ex/camera2/utils/android-ex-camera2-utils/android_common/javac/android-ex-camera2-utils.jar

3.错误: 找不到符号–>符号: 类 SystemProperties–>位置: 程序包 android.os

out/soong/.intermediates/frameworks/base/framework-minus-apex/android_common/combined/framework-minus-apex.jar

重命名为framework.jar并放入studio_libs/unisoc_framework目录下

4.错误: 找不到符号–>符号: 类 IDreamCamera–>位置: 程序包 com.spreadtrum.satdeamonservice

aidl.srcDirs = ['src/com/sprd/gallery3d/aidl/IFloatWindowController.aidl','src']

5.The device already has a newer version of this application.

        versionCode 33
        versionName "13"

6.The device already has an application with the same package but a different signature.
platform.pk8 + platform.x509.pem --> platform.jks
将platform.jks配置进build.gradle中

android {
    signingConfigs {
        google {
            storeFile file('key/google/platform.jks')
            storePassword '123456'
            keyPassword '123456'
            keyAlias 'platform'
        }
    }
	...
    buildTypes {
        ...
        debug {
            ...
            signingConfig signingConfigs.google
        }
    }
}