tags:

views:

33

answers:

2

jarsigner: Certificate chain not found for: csi.keystore. csi.keystore must ref erence a valid KeyStore key entry containing a private key and corresponding pub lic key certificate chain..

who has idea? thanks...

A: 

This is because your building in release mode. If you build in debug mode it should work. I need to set thus up for release mode myself so let me know how you do it in release mode if you get it working

Ben
A: 

thanks Ben!

Yes,I build it in debug mode it should work.But I build it in release get error,I cannot find the reason for it.

        <!-- sign the APK -->
        <echo>Signing final apk...</echo>
        <signjar
                jar="${out-unsigned-package}"
                signedjar="${out-unaligned-package}"
                keystore="${key.store}"
                storepass="${key.store.password}"
                alias="${key.alias}"
                keypass="${key.alias.password}"/>
        <!-- zip align the APK -->
        <echo>Running zip align on final apk...</echo>
        <exec executable="${zipalign}" failonerror="true">
            <arg value="-f" />
            <arg value="4" />
            <arg path="${out-unaligned-package}" />
            <arg path="${out-release-package}" />
        </exec>
        <echo>Release Package: ${out-release-package}</echo>
    </target>
jinpengzhang