IDをandroid-24にて、プロジェクトを作成
先日この掲示板でおにたまさんから対策のあった、
「HspActivity.java」を上書きして
通常のビルドはうまく行き、debugのapkは正常に動作するのですが
リリースビルドを行うと、
jarは署名されました。 警告: -tsaまたは-tsacertが指定されていないため、 このjarにはタイムスタンプが付加されていません。 タイムスタンプがないと、署名者証明書の有効期限(2042-02-15)後 または将来の失効日後に、 ユーザーはこのjarを検証できない可能性があります。
のエラーみたいなものが出て、出来上がったリリース版のapkは正常に動作しません…
「このjarにはタイムスタンプが付加されていません」などの文面で検索すると
幾つか情報が出てくるのですが
どの対策を取ればいいのか、またその方法も詳細がわからなくて
困っています
JDKの6u32でもやってみたのですが
そっちだと、確かよほど古いDishや各種ツールを使わないと
確か、通常ビルドでもエラー出たと思います
対策をご存じの方、アドバイスなどよろしくお願いします
環境(自分の分かる範囲ですが…)
OS:Windows8.1 64Bit
JDK 1.8.0_144(8u144)(x64)
SDK:25.2.5
NDK:r12b
ANT:1.10.1
その際のconsole内容
Buildfile: (固有パス)msk_a0709301237\build.xml -set-mode-check: -set-release-mode: -release-obfuscation-check: [echo] proguard.config is ${proguard.config} -pre-build: -check-env: [checkenv] Android SDK Tools Revision 25.2.5 [checkenv] Installed at (固有パス)\sdk -setup: [echo] Project Name: msk_a0709301237 [gettype] Project Type: Application -build-setup: [getbuildtools] Using latest Build Tools: 23.0.1 [echo] Resolving Build Target for msk_a0709301237... [gettarget] Project Target: Android 7.0 [gettarget] API level: 24 [echo] ---------- [echo] Creating output directories if needed... [mkdir] Created dir: (固有パス)msk_a0709301237\bin\rsObj [mkdir] Created dir: (固有パス)msk_a0709301237\bin\rsLibs [echo] ---------- [echo] Resolving Dependencies for msk_a0709301237... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------ [echo] ---------- [echo] Building Libraries with 'release'... [subant] No sub-builds to iterate on -code-gen: [mergemanifest] Found Deleted Target File [mergemanifest] Merging AndroidManifest files into one. [mergemanifest] Manifest merger disabled. Using project manifest only. [echo] Handling aidl files... [aidl] No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [echo] ---------- [echo] Handling Resources... [aapt] Found Deleted Target File [aapt] Generating resource IDs... [echo] ---------- [echo] Handling BuildConfig class... [buildconfig] No need to generate new BuildConfig. -pre-compile: -compile: [javac] Compiling 1 source file to (固有パス)msk_a0709301237\bin\classes [javac] 警告: [options] ソース値1.5は廃止されていて、今後のリリースで削除される予定です [javac] 警告: [options] ターゲット値1.5は廃止されていて、今後のリリースで削除される予定です [javac] 警告: [options] 廃止されたオプションについての警告を表示しないようにするには、-Xlint:オプションを使用します。 [javac] 警告3個 -post-compile: -obfuscate: -dex: [dex] input: (固有パス)msk_a0709301237\bin\classes [dex] Found Deleted Target File [dex] Converting compiled files and external libraries into (固有パス)msk_a0709301237\bin\classes.dex... -crunch: [crunch] Crunching PNG Files in source dir: (固有パス)msk_a0709301237\res [crunch] To destination dir: (固有パス)msk_a0709301237\bin\res [crunch] Crunched 0 PNG files to update cache -package-resources: [aapt] Found Deleted Target File [aapt] Creating full resource package... -package: [apkbuilder] Found Deleted Target File [apkbuilder] Creating msk_a0709301237-release-unsigned.apk for release... -post-package: -release-prompt-for-password: -release-nosign: [echo] No key.store and key.alias properties found in build.properties. [echo] Please sign (固有パス)msk_a0709301237\bin\msk_a0709301237-release-unsigned.apk manually [echo] and run zipalign from the Android SDK tools. [propertyfile] Updating property file: (固有パス)msk_a0709301237\bin\build.prop [propertyfile] Updating property file: (固有パス)msk_a0709301237\bin\build.prop [propertyfile] Updating property file: (固有パス)msk_a0709301237\bin\build.prop [propertyfile] Updating property file: (固有パス)msk_a0709301237\bin\build.prop -release-sign: -post-build: release: BUILD SUCCESSFUL Total time: 9 seconds