Compile Traccar Client from Source

Albertus6 years ago

Good Day

Try to compile Traccar Client from source in Android Studio, but get following error:

Error:All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html

Could you maybe assist?

Thank You
Albertus Geyser

Anton Tananaev6 years ago

I suspect that when you imported the project it asked you to upgrade plugin. Don't do it unless you know what you are doing and ready to fix all incompatibility issues. Or you just importing it incorrectly.

rolsch6 years ago

The gradle update is the problem.
Don't do this or an developper (with better skill as me (have the same problem)) must upgrading some coding.
I'm a absolutly beginner in android developping :-O

@Anton: can you us spend some minutes for an example in the traccer-client Code?

Warm regards from rainy germany
Roland

rolsch6 years ago

@Albertus: show the gradle scripts -> build.gradle

Insert flavorDimensions "default"

Example:

android {
flavorDimensions "default"
compileSdkVersion 26
buildToolsVersion '26.0.2'
...

Regards
Roland

Anton Tananaev6 years ago

If you don't know what you are doing don't try to upgrade grade, plugin or anything else.

rolsch6 years ago

...don't try - don't learn ;-)

Anton Tananaev6 years ago

Unfortunately I don't have time for mentoring. If you want to learn Android development there is plenty resources for that on the Internet. If you have generic Android development questions you can ask on StackOverflow.

rolsch6 years ago

"I don't have time for mentoring" => absolutly no problem :-)

Albertus6 years ago

Thank You . . . Roland, Anton.