なぜクラスパスの変更後のAndroidでのアプリの署名を変更していますか?

StackOverflow https://stackoverflow.com/questions/2458931

  •  20-09-2019
  •  | 
  •  

質問

私はいくつかのカスタマイズを適用する三つの異なる用途、app-1app-2app-3に分岐Androidのプロジェクトを持っています。現在メンテナンスに悪夢を作るコードの重複の多くは、そこにある:分岐の1つの変更を行い、その後、他の二つを統合

だから我々は、重複したコードのほとんどを要因app-coreというライブラリプロジェクトを作成します、。これまでのところは良い。

私は、アプリケーションが既に(リファクタリング前に)ロードされたエミュレータにこれを起動すると、私はこの例外を取得します:

Re-installation failed due to different application signatures

異なる署名?しかし、私はちょうど.classpath Javaプロジェクトにリンクするapp-coreに行を追加しました!

主な問題は、既存のユーザーもこれで気にされようとしている。

そして側の質問:なぜそれは異なる署名である。

役に立ちましたか?

解決

The digital signature is driven by a signing key that exists on the machine that signs the app. If Developer A compiles an app using the standard debug key and installs it in an emulator, then tries installing some other variation of the app -- one signed with a production key, one signed with Developer B's debug key, etc. -- in the same emulator, you will get that error.

The main question is: are the existing users going to be bothered by this too?

Do you have the production signing key that you used for the version of the app your existing users are using? If yes, then there should be no problem. If no, you're screwed.

他のヒント

Uninstall the application on the device, then run code again, it will work. It happens for me and I tried same thing, now it is working correctly.

For this problem u need to check that the correct key is used under (Window->Preferences->Android->build). This u can check from the android.mk file of the app. And on placing the correct key path , CLEAN and BUILD the project to avoid this error .

I have had the similar kind of issue. If you are installing it on your device then you need to uninstall the app on your device prior to install it from eclipse. It will definitely solve your problem.

Cheers

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top