作者Deltaguita (贝纳颂)
看板AndroidDev
标题Re: [问题] AndroidStudio 安装第三方 和 buildRelease?
时间Tue May 27 11:47:12 2014
身为一个as 0.1~0.5.8的使用者... 各种心酸谁人知阿~~
--
其实volley是非必需的,对於新手写android client来说
HttpURLConnection、HttpPost 这类常见的jdk、skd api 应该会更为亲切
※ 引述《yhn0tgb60 (呦厚厚)》之铭言:
: 我是个开发的新手 第一次做app
: 我是用 AndroidStudio + MacBookPro
: 我现在在做 app要沟通server的功能
: client端 看到很多人都推荐用 volley 所以我当然就来用看看
: 应该是要安装第三方Lib 而且要能开启volley类型的Project
: 我看到网路上都是 eclipse的教学 没找到 AndroidStudio的教学
: 所以我就凭eclipse的教学 找看看AndroidStudio类似的地方
: 我的操作步骤是这样
: VCS->Checkout from Version Control->Git
: 填上 https://android.googlesource.com/platform/frameworks/volley
: 下载档案 和随便找一个安装路径?
: 我设定路径是 /Applications/Android Studio.app/plugins/gradle
: 接下来会到 Import Project from Gradle
: 要设定 Gradle home
: 其实我不懂这个设定是什麽意思
其实就跟设定JAVA_HOME ANDROID_HOME是一样的
: 总之我也设定 /Applications/Android Studio.app/plugins/gradle
: 结果显示错误
: You are using an unsupported version of Gradle. Please use version 1.10.
: Please point to a supported Gradle version in the project's Gradle
: settings or in the project's Gradle wrapper (if applicable.)
: Consult IDE log for more details (Help | Show Log)
: 看来是要去更新 Gradle?
: http://services.gradle.org/distributions
: 我到这下载新版的 Gradle 但是却不知道要怎麽 update.....
并不是update 而是要你下载1.10 这个版本
目前AS适用的gradle 版本
: 感觉好麻烦.... 这种更新的事情 怎麽没有一键完成的功能.....
身为一个Developer ,怎麽可以一键完成(误
: 另外我在 build release版时 也遇到 signed 的问题....
: Installation failed since the APK was either not signed, or signed incorrectly.
当你build debug版本的时候 ,会使用预设的debug key 不管在eclipse或是AS都是这样
但是release 版本不能使用预设的debug key,你必须自己产生一个
请参考:
Signing Your Applications
http://developer.android.com/tools/publishing/app-signing.html
: If this is a Gradle-based project,
: then make sure the signing configuration is specified
: in the Gradle build script.
如果这是一个由Gradle 管理的project,请你去设定 Gradle build script
告诉Gradle Project 你的凭证在哪里,要用哪个钥匙,密码是多少
: 目前也还看不懂要怎麽解
: 怎麽会这麽麻烦勒 ==
甚麽还不会 !? 来来来请服用 :)
stackoverflow:
http://ppt.cc/7aZr
AS官方文件:
http://ppt.cc/-G70
机於安全考量,设定凭证路径这跟密码(主要是这个!)我不会把他写在build.gradle里
在android studio: Build->Generate Signed APK 再输入密码就行了
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 220.135.37.235
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/AndroidDev/M.1401162436.A.3B0.html