i am very new to the android world and i was trying to just get to run a simple hello world app on my phone.
when i tried this i learnt that the APK generated by an android studio is an unsigned one. So to sign this I have gone through the process of creating a Key store and then a private Key , its alias and i was successful in signing the APK and installing on my phone and running it too.
Then i went through this link for adding signing configurations to the gradle to automatically sign the release with the newly created key store file.
I have followed the steps n the above link properly and did not miss anything but still when i finish my signing configurations i have an error saying
Gradle project sync failed.Basic functionality(eg. editing, debugging)
will not work properly.
Error:(19, 0) Could not find property 'config' on SigningConfig
apply plugin: 'com.android.application'
keyAlias "usual password"
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
compile fileTree(dir: 'libs', include: ['*.jar'])
There is a mistake in the
buildTypes.release block. The signing config should be:
Note, that this is how you named the configuration in the
signingConfigs block above.
Also leave out the signing config in the
buildTypes.debug block (or, if you really want to have it, set it like above).