android - why am i getting errors while attempting to build my signed APK -
i trying create signed apk , saw this tutorial online. followed steps in tutorial , still following error in messages
tab .
error :
error:a problem occurred configuring project ':app'. > not resolve dependencies configuration ':app:_debugcompile'. > not find com.android.support:appcompat-v7:22.2.0. searched in following locations: https://jcenter.bintray.com/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.pom https://jcenter.bintray.com/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.jar file:/c:/users/silambu/appdata/local/android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.pom file:/c:/users/silambu/appdata/local/android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.jar file:/c:/users/silambu/appdata/local/android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.pom file:/c:/users/silambu/appdata/local/android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.jar required by: droidone:app:unspecified
if don't generate signed apk , android studio does't build project , run it, need build signed apk. why getting error , how solve ?
edit: build gradle files .
apply plugin: 'com.android.application' android { compilesdkversion 22 buildtoolsversion "22.0.1" defaultconfig { applicationid "com.example.gautam.droidone" minsdkversion 8 targetsdkversion 22 versioncode 1 versionname "1.0" // testpackagename "com.example.gautam.droidone.tests.mainactivitytest" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.2.0' }
other gradle file:
// top-level build file can add configuration options common sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.2.3' // note: not place application dependencies here; belong // in individual module build.gradle files } } allprojects { repositories { jcenter() } }
Comments
Post a Comment