opentrace-community / opentrace-android

OpenTrace Android app. Reference implementation of the BlueTrace protocol.
https://bluetrace.io
GNU General Public License v3.0
577 stars 225 forks source link

Gradle sync failed Could not get unknown property 'STORE_URL' #24

Closed chorfa007 closed 3 years ago

chorfa007 commented 4 years ago

Hello,

I start building the android application using Android studio and i got the following error : 4/19/20 9:59 PM Gradle sync started

9:59 PM Gradle sync failed: Could not get unknown property 'STORE_URL' for DefaultConfig_Decorated{name=main, dimension=null, minSdkVersion=DefaultApiVersion{mApiLevel=22, mCodename='null'}, targetSdkVersion=DefaultApiVersion{mApiLevel=29, mCodename='null'}, renderscriptTargetApi=null, renderscriptSupportModeEnabled=null, renderscriptSupportModeBlasEnabled=null, renderscriptNdkModeEnabled=null, versionCode=41, versionName=1.0.41, applicationId=io.bluetrace.opentrace, testApplicationId=null, testInstrumentationRunner=androidx.test.runner.AndroidJUnitRunner, testInstrumentationRunnerArguments={}, testHandleProfiling=null, testFunctionalTest=null, signingConfig=null, resConfig=null, mBuildConfigFields={GITHASH=com.android.builder.internal.ClassFieldImpl@f362edee}, mResValues={build_config_package=com.android.builder.internal.ClassFieldImpl@78503f26}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}, mWearAppUnbundled=null} of type com.android.build.gradle.internal.dsl.Defaul... (show balloon)

It looks like the 2 variables store URL and PRIVACY URL are not correctly configured could you please help? I'm new in the Android studio if you can share a wiki I could use to generate debug and release versio

rinekri commented 4 years ago

@chorfa007 you should create gradle.properties file in the project directory and then put there a sample configuration https://github.com/opentrace-community/opentrace-android#configs-in-gradleproperties.

ghost commented 4 years ago

@rinekri I think he needs to define the parameters STORE_URL="" PRIVACY_URL="" in properties file. I have the same issue.

rinekri commented 4 years ago

@rinekri I think he needs to define the parameters STORE_URL=""

PRIVACY_URL="" in properties file. I have the same issue.

Sure, but you should use all parameters, cos they all need to successfully build app, and sample doesn’t contain properties file at all.

Biplovkumar commented 4 years ago

Plz follow this link Add gradle.properties from Configs in gradle.properties Link

itzkou commented 4 years ago

Can I use this project for educational purposes , I am not a government official

Jai-GAY commented 4 years ago

@chorfa007 , You create a new Android Studio project then move folders or open the unzip folder as an existing android project or import? What Android Studio version you are using. I use the opening unzip folder as an existing android project plus adding in the gradle.properties, I don't even see the build project button.

ikamaru commented 4 years ago
chorfa007 commented 3 years ago

Hello, sorry for the late response thanks all for your support