TellH / GitClub

An elegent Android Client for Github. 不仅仅是Github客户端,而且是一个发现优秀Github开源项目的app
Apache License 2.0
657 stars 112 forks source link

项目导入时 报 Could not get unknown property'GITHUB_CLIENT_ID' #7

Open skl351 opened 7 years ago

skl351 commented 7 years ago

您好,您的项目非常棒,我直接用apk安装,可以运行,但是不知道怎么回事在android studio上导入提示Error:(16, 0) Could not get unknown property 'Github_CLIENT_ID' for BuildType_Decorated{name=release, debuggable=false, testCoverageEnabled=false, jniDebuggable=false, pseudoLocalesEnabled=false, renderscriptDebuggable=false, renderscriptOptimLevel=3, minifyEnabled=false, zipAlignEnabled=true, signingConfig=null, embedMicroApp=true, mBuildConfigFields={}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}} of type com.android.build.gradle.internal.dsl.BuildType. 之后就安装不上了,不知道是什么原因

TellH commented 7 years ago

qq 20170309165741 我没有上传gradle.properties文件,所以你编译的时候会出错。你按图片上的项目根目录里新建文件gradle.properties,在文件中添加相应的参数再build一下就可以解决这个异常。

android.enableBuildCache=true
Github_CLIENT_ID=82248be95d9d71c099b5
Github_CLIENT_SECRET=dd5afb626caf53f932a6b432c625c27b4214065e
URL_GITHUB=https://api.github.com/
URL_EXPLORE=http://trending.codehub-app.com/
URL_GANK=http://gank.io/api/data/all/
URL_ARSENAL=http://182.254.233.29/arsenal_api/
skl351 commented 7 years ago

谢谢,您的速度的好快啊,试了一下,可以正常运行项目了,再次十分感谢您的项目

TellH commented 7 years ago

@skl351 :) Thanks