2017-09-27 118 views
1

我在嘗試爲我的離子應用生成已簽名的apk時出錯。我遵循https://developer.android.com/studio/publish/app-signing.html的步驟。生成已簽名apk的錯誤

下面是錯誤圖像:

enter image description here

誰能告訴這個錯誤背後的根本原因。

+0

你可以嘗試用這個指南http://ionicframework.com/docs/v1/guide/publishing.html:

您可以通過運行下面的安裝呢? –

+0

請參閱本指南瞭解離子2+ https://github.com/rotati/wiki/wiki/Deploy-an-Ionic-Android-app-to-Google-Play-Store – Duannx

回答

0

我昨天從字面上看過這個問題。我相信Google消息傳遞服務(GMS)已經有了更新。您是否使用插件背景地理定位cordova-background-geolocation或PushWoosh插件(pushwoosh-cordova-plugin)?

我還沒有收到永久修復(我相信負責人需要更新他們的插件),但臨時修復方法是導航到{projectname}-build.gradle

你應該看到一行大意如下:

dependencies { 
    compile 'com.google.android.gms:play-services-location:11.+' 
    compile 'com.squareup.okhttp3:okhttp:3.8.1' 
    compile 'org.greenrobot:eventbus:3.0.0' 
    compile(name:'tslocationmanager', ext:'aar') 
    // logback-android 
    compile 'org.slf4j:slf4j-api:1.7.21' 
    compile 'com.github.tony19:logback-android-core:1.1.1-6' 
    compile('com.github.tony19:logback-android-classic:1.1.1-6') { 
    exclude group: 'com.google.android', module: 'android' 
    } 
} 

更改前行,以便代替11+,它成爲11.2.0

如果不是,請注意您使用的插件。

或者

我發現了一個新的插件現在可以準確地用於此,科爾多瓦,谷歌的API版本:https://www.npmjs.com/package/cordova-google-api-version

cordova plugin add [email protected] --save 
+0

您是否介意告訴我在哪裏可以找到{項目名稱} -build.gradle'? –

+0

Hi @ aakash-thakur,你使用哪些插件?我認爲這是特定於背景地理定位的一個。 – keldar

+0

另外,檢查我的編輯 - 有一個插件可以繞過這個對你來說可能更容易。 – keldar

相關問題