0

我從eclipse導入android應用程序到android studio,應用程序工作正常,但gradle.properties丟失。android studio項目中的gradle.properties丟失

我需要尤伯杯SDK集成到我的應用程序,我需要添加以下屬性 UBER_CLIENT_ID, UBER_REDIRECT_URI, UBER_SERVER_TOKEN,

gradle.properties,但沒有gradle.properties

回答

3

你可以把gradle.properties文件根項目的或內部在〜/家庭/用戶/ .gradle /文件夾

如果你是在Mac上,下面的終端命令類型:

cd ~/home/user/.gradle/ 
nano gradle.properties 

然後在打開的文件中鍵入如下:

UBER_CLIENT_ID = "abc" 
UBER_REDIRECT_URI = "bcd" 
UBER_SERVER_TOKEN = "cde"