① 鎬庝箞璁╂墜鏈篴pp絳懼悕
榪涘叆寮鍙戣呰仈緋婚〉闈錛岀數璇濊仈緋誨紑鍙戣咃紝璁╁紑鍙戣呴噸鏂板硅瘉涔﹁繘琛岀懼悕錛屼笂浼犵▼搴忥紝瀹屾垚銆
鎵嬫満杞浠訛紝涓昏佹寚瀹夎呭湪鏅鴻兘鎵嬫満涓婄殑杞浠訛紝瀹屽杽鍘熷嬬郴緇熺殑涓嶈凍涓庝釜鎬у寲銆備嬌鎵嬫満瀹屽杽鍏跺姛鑳斤紝涓虹敤鎴鋒彁渚涙洿涓板瘜鐨勪嬌鐢ㄤ綋楠岀殑涓昏佹墜孌點傛墜鏈鴻蔣浠剁殑榪愯岄渶瑕佹湁鐩稿簲鐨勬墜鏈虹郴緇燂紝鎴鑷2017騫6鏈1鏃ワ紝涓昏佺殑鎵嬫満緋葷粺錛氳嫻鏋滃叕鍙哥殑iOS銆佽胺姝屽叕鍙哥殑Android錛堝畨鍗擄級緋葷粺銆佸炵彮騫沖彴鍜屽井杞騫沖彴銆
2019騫11鏈4鏃ワ紝宸ヤ笟鍜屼俊鎮鍖栭儴淇℃伅閫氫俊綆$悊灞緇勭粐鍙寮APP渚靛崇敤鎴鋒潈鐩婅屼負涓撻」鏁存不宸ヤ綔鍚鍔ㄩ儴緗蹭細錛屽皢閲嶇偣瀵硅繚瑙勬敹闆嗙敤鎴蜂釜浜轟俊鎮銆佽繚瑙勪嬌鐢ㄧ敤鎴蜂釜浜轟俊鎮銆佷笉鍚堢悊緔㈠彇鐢ㄦ埛鏉冮檺銆佷負鐢ㄦ埛璐︽埛娉ㄩ攢璁劇疆闅滅嶅洓涓鏂歸潰鐨8綾婚棶棰樺紑灞曡勮寖鏁存不宸ヤ綔銆
鏅鴻兘鎵嬫満錛屾槸鎸囧儚涓浜虹數鑴戜竴鏍鳳紝鍏鋒湁鐙絝嬬殑鎿嶄綔緋葷粺銆佺嫭絝嬬殑榪愯岀┖闂達紝鍙浠ョ敱鐢ㄦ埛鑷琛屽畨瑁呰蔣浠躲佹父鎴忋佸艱埅絳夌涓夋柟鏈嶅姟鍟嗘彁渚涚殑紼嬪簭錛屽苟鍙浠ラ氳繃縐誨姩閫氳緗戠粶鏉ュ疄鐜版棤綰跨綉緇滄帴鍏ユ墜鏈虹被鍨嬬殑鎬葷О銆
闅忕潃鏅鴻兘鎵嬫満鐨勬櫘鍙婏紝浜轟滑鍦ㄦ矡閫氥佺ぞ浜ゃ佸ū涔愮瓑媧誨姩涓瓚婃潵瓚婁緷璧栦簬鎵嬫満app杞浠訛紙app錛岃嫳鏂嘺pplication鐨勭畝縐幫紝鍗沖簲鐢ㄨ蔣浠訛紝閫氬父鏄鎸噄Phone銆佸畨鍗撶瓑鎵嬫満搴旂敤杞浠訛級銆傛墜鏈鴻蔣浠舵槸閫氳繃鍒嗘瀽錛岃捐★紝緙栫爜錛岀敓鎴愯蔣浠訛紝鑰屾墜鏈鴻蔣浠舵槸涓縐嶇壒孌婄殑杞浠躲
② 濡備綍灝哸ndroid搴旂敤鐢熸垚絳懼悕
1.絳懼悕鐨勬ラ
銆銆a.鍒涘緩key
銆銆b.浣跨敤姝ラa涓浜х敓鐨刱ey瀵筧pk絳懼悕
2.鍏蜂綋鎿嶄綔
銆銆鏂規硶涓錛 鍛戒護琛屼笅瀵筧pk絳懼悕錛堝師鐞嗭級
銆銆鍒涘緩key錛岄渶瑕佺敤鍒発eytool.exe (浣嶄簬jdk1.6.0_24jrein鐩褰曚笅)錛屼嬌鐢ㄤ駭鐢熺殑key瀵筧pk絳懼悕鐢ㄥ埌鐨勬槸jarsigner.exe (浣嶄簬jdk1.6.0_24in鐩褰曚笅)錛屾妸涓婁袱涓杞浠舵墍鍦ㄧ殑鐩褰曟坊鍔犲埌鐜澧冨彉閲弍ath鍚庯紝鎵撳紑cmd杈撳叆
D:>keytool -genkey -alias demo.keystore -keyalg RSA -validity 40000 -keystore demo.keystore
/*璇存槑錛-genkey 浜х敓瀵嗛掗
-alias demo.keystore 鍒鍚 demo.keystore
-keyalg RSA 浣跨敤RSA綆楁硶瀵圭懼悕鍔犲瘑
-validity 40000 鏈夋晥鏈熼檺4000澶
-keystore demo.keystore */
D:>jarsigner -verbose -keystore demo.keystore -signedjar demo_signed.apk demo.apk demo.keystore
/*璇存槑錛-verbose 杈撳嚭絳懼悕鐨勮︾粏淇℃伅
-keystore demo.keystore 瀵嗛掗搴撲綅緗
-signedjar demor_signed.apk demo.apk demo.keystore 姝e紡絳懼悕錛屼笁涓鍙傛暟涓渚濇′負絳懼悕鍚庝駭鐢熺殑鏂囦歡demo_signed錛岃佺懼悕鐨勬枃浠禿emo.apk鍜屽瘑閽ュ簱demo.keystore.*/
銆銆娉ㄦ剰浜嬮」錛歛ndroid宸ョ▼鐨刡in鐩褰曚笅鐨刣emo.apk榛樿ゆ槸宸茬粡浣跨敤debug鐢ㄦ埛絳懼悕鐨勶紝鎵浠ヤ笉鑳戒嬌鐢ㄤ笂榪版ラゅ規ゆ枃浠跺啀嬈$懼悕銆傛g『姝ラゅ簲璇ユ槸:鍦ㄥ伐紼嬬偣鍑誨彸閿->Anroid Tools-Export Unsigned Application Package瀵煎嚭鐨刟pk閲囩敤涓婅堪姝ラょ懼悕銆
銆銆鏂規硶浜岋細浣跨敤Eclipse瀵煎嚭甯︾懼悕鐨刟pk
銆銆Eclipse鐩存帴鑳藉煎嚭甯︾懼悕鐨勬渶緇坅pk錛岄潪甯告柟渚匡紝鎺ㄨ崘浣跨敤錛屾ラゅ備笅錛
銆銆絎涓姝ワ細瀵煎嚭銆
銆銆絎浜屾ワ細鍒涘緩瀵嗛掗搴搆eystore,杈撳叆瀵嗛掗搴撳煎嚭浣嶇疆鍜屽瘑鐮侊紝璁頒綇瀵嗙爜錛屼笅嬈Use existing keystore浼氱敤鍒般
銆銆絎涓夋ワ細濉鍐欏瘑閽ュ簱淇℃伅錛屽~鍐欎竴浜沘pk鏂囦歡鐨勫瘑鐮侊紝浣跨敤鏈熼檺鍜岀粍緇囧崟浣嶇殑淇℃伅銆
銆銆絎鍥涙ワ細鐢熸垚甯︾懼悕鐨刟pk鏂囦歡錛屽埌姝ゅ氨緇撴潫浜嗐
銆銆絎浜旀ワ細濡傛灉涓嬫″彂甯冪増鏈鐨勬椂鍊欙紝浣跨敤鍓嶉潰鐢熸垚鐨刱eystore鍐嶇懼悕銆
銆銆絎鍏姝ワ細Next,Next,緇撴潫錛
銆銆鏂規硶涓夛細浣跨敤IntelliJ IDEA瀵煎嚭甯︾懼悕鐨刟pk
銆銆鏂規硶姝ラゅ熀鏈鍜孍clipse鐩稿悓錛屽ぇ姒傛搷浣滆礬寰勬槸錛氳彍鍗昑ools->Andrdoid->Export signed apk銆