java - Gradle DSL method not found: storeFile() -
i'm using android studio 1.1.0. when try sync gradle file, following error:
gradle dsl method not found:storefile()
here gradle configuration:
apply plugin: 'com.android.application' android { compilesdkversion 21 buildtoolsversion "21.1.2" defaultconfig { applicationid "skripsi.ubm.studenttracking" minsdkversion 16 targetsdkversion 21 versioncode 1 versionname "1.0" } signingconfigs { release { storefile (project.property("students_tracking_keystore.jks") + ".keystore") storepassword "####" keyalias "####" keypassword "#####" } } }
can help?
a couple of things note:
the storefile
dsl method has following signature:
public defaultsigningconfig setstorefile(file storefile)
i.e. expects file
passed in. need place file
constructor in code ensure creating file
object. because you're not passing in file, gradle complaining can't find method appropriate signature.
secondly, appending 2 suffices filename: .jks
, .keystore
. should include 1 of these based on suffix of file referencing (it's .jks
, should check sure).
in short, 1 of following replacement lines work you:
storefile file(project.property("students_tracking_keystore") + ".keystore")
or
storefile file(project.property("students_tracking_keystore") + ".jks")
or
storefile file(project.property("students_tracking_keystore.keystore"))
or
storefile file(project.property("students_tracking_keystore.jks"))
Comments
Post a Comment