I am integrated LinkedIn
successfully using newly released Android Mobile SDK
and all done well using Android Studio
, but when I generating signed apk
is showing the below mentioned error. I heard that we have to use debug.keystore
file otherwise this error LinkedIn sdk will return same error.
I have done that too, but the scenario was while we are generating signed apk in Android Studio it's giving .jks file
not .keystore file
. Please tell me the step how to generate .keystore
file and how to configure this in build.gradle
.
Error:
Error={
"errorMessage": "either bundle id or package name \/ hash are invalid, unknown, malformed",
"errorCode": "UNKNOWN_ERROR"
}
My gradle file look like below, and I pasted the .jks
file inside app direction, but still while installing signed apk
its not running giving the error as I mentioned, but it working fine when installing the app in debugging mode.
build.gradle:
allprojects {
repositories {
mavenCentral()
}
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.myapp.hello"
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
signingConfigs {
sdkTest {
storeFile file("secureln.jks")
storePassword "password"
keyAlias "secureln"
keyPassword "password"
}
release {
storeFile file("secureln.jks")
storePassword "password"
keyAlias "secureln"
keyPassword "password"
}
}
buildTypes {
sdkTest {
debuggable false
signingConfig signingConfigs.sdkTest
}
release {
debuggable false
signingConfig signingConfigs.release
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
compile project(':linkedin-sdk')
}
configurations {
}
dependencies {
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.google.code.gson:gson:2.3.1'
}
I need to any one help me please.