gradle - Could not find property 'keyStorePath' on project ':app' in Android Studio -


i have task in app module build.gradle

task testkeystorepath << {     println "what, " + keystorepath     file file = file(keystorepath)     println file.isfile() } 

in ~/.bash_profile

#key store path export org_gradle_project_keystorepath=/users/marshall/documents/eclipse.keystore 

i'm sure correctly set

in android studio, gradle sync fail

error:(16, 0) not find property 'keystorepath' on project ':app'. 

but, in terminal

 ./gradlew testkeystorepath -q  what, /users/marshall/documents/eclipse.keystore  true 

why?

after call

export org_gradle_project_keystorepath=/users/marshall/documents/eclipse.keystore 

you should call source ~/.bash_profile make setting works @ once,or work util open command line again.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -