Okay, I fixed this.

signingConfigs {
        myConfig {
            storeFile file(signingStoreLocation)
            storePassword signingStorePassword
            keyAlias signingKeyAlias
            keyPassword signingKeyPassword
        }
    }

    buildTypes {
        release {
            signingConfig signingConfigs.myConfig
        }
    }

On Friday, March 1, 2013 4:06:37 PM UTC-5, Jonathan S wrote:
>
>
> http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Signing-ConfigurationsI
>  see string values
>
> On Friday, March 1, 2013 6:53:19 AM UTC-5, Daniel Rindt wrote:
>>
>> Hello,
>>
>> using the builder version 0.3 and try to sign my app. Those values are 
>> present in ~/.gradle/gradle.properties and worked fine in version 0.2.
>> Here is my definition:
>> apply plugin: 'android'
>>
>> def getCurrentVersionCodeOrBuildNumber() {
>>     ext.v = System.getenv().BUILD_NUMBER?.toInteger()
>>     if (ext.v == -1 || ext.v == null)
>>         ext.v = 1
>>
>>     return ext.v
>> }
>>
>> android {
>>     compileSdkVersion 17
>>     sourceSets {
>>         main {
>>             manifest {
>>                 srcFile "AndroidManifest.xml"
>>             }
>>             res {
>>                 srcDir "res"
>>             }
>>             java {
>>                 srcDirs = ['src', 'src-gen']
>>             }
>>         }
>>     }
>>     defaultConfig {
>>         versionCode getCurrentVersionCodeOrBuildNumber()
>>     }
>>     signingConfigs {
>>         release {
>>             storeLocation project.ext.androidSigningStoreLocation
>>             storePassword project.ext.androidSigningStorePassword
>>             keyAlias project.ext.androidSigningKeyAlias
>>             keyPassword project.ext.androidSigningKeyPassword
>>         }
>>     }
>>     buildTypes {
>>         release {
>>             signingConfig signingConfigs.release
>>         }
>>     }
>> }
>>
>> dependencies {
>>     compile ':android-support:v4'
>>     compile ':greenDAO:'
>>     compile ':gson:2.2.2'
>>     compile project(':ZXing')
>> }
>>
>> when i do a gradle assembleDebug i got:
>> A problem occurred evaluating project ':ProjectC'.
>> > Could not find method storeLocation() for arguments 
>> [/home/drindt/.android/debug.keystore] on 
>> SigningConfigDsl_Decorated{name=release, storeFile=null, 
>> storePassword=null, keyAlias=null, keyPassword=null, storeType=null}.
>>
>> The keystore file exits and its accessible with the credentials.
>>
>> Thank you for suggestions and help.
>> Daniel
>>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to