[英]gradle.properties in android studio project missing
I imported android application from eclipse to android studio,Application working fine but gradle.properties is missing. 我从eclipse导入了android应用程序到android studio,应用程序工作正常,但是gradle.properties丢失了。
I need to integrate Uber SDK to my application,I need add following properties UBER_CLIENT_ID, UBER_REDIRECT_URI, UBER_SERVER_TOKEN, 我需要将Uber SDK集成到我的应用程序中,我需要添加以下属性UBER_CLIENT_ID,UBER_REDIRECT_URI,UBER_SERVER_TOKEN,
to gradle.properties ,But there is no gradle.properties . 到gradle.properties ,但是没有gradle.properties 。
You can put the gradle.properties file inside the root of your project or inside the ~/home/user/.gradle/ folder 您可以将gradle.properties文件放入项目的根目录或〜/ home / user / .gradle /文件夹中
if you are in mac, type below command in the terminal: 如果您使用的是Mac,请在终端中输入以下命令:
cd ~/home/user/.gradle/
nano gradle.properties
And then type below in the opened file: 然后在打开的文件中键入以下内容:
UBER_CLIENT_ID = "abc"
UBER_REDIRECT_URI = "bcd"
UBER_SERVER_TOKEN = "cde"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.