Telegram icon indicating copy to clipboard operation
Telegram copied to clipboard

Fix incompatibility with Gradle plugin on Windows.

Open DanAlbert opened this issue 7 years ago • 7 comments

When run on Windows, the shell does not handle the argument quoting and this is seen by gradle as '-DVERSION="1.3.1"' rather than as -DVERSION="1.3.1", which gradle wrongly interprets as a source file.

DanAlbert avatar Oct 08 '18 18:10 DanAlbert

this is telegram android, are you sure you are targeting the correct repo?

Aokromes avatar Dec 06 '18 14:12 Aokromes

You can build for Android from Windows.

DanAlbert avatar Dec 06 '18 15:12 DanAlbert

Please give one correct instruction to run the source

Amirhf1 avatar Jan 01 '19 20:01 Amirhf1

Open it in Android Studio and build it.

DanAlbert avatar Jan 07 '19 22:01 DanAlbert

In new 5.2.0 version got the same problem. Solution is similar -> TProj/jni/Android.mk line number 545 LOCAL_CFLAGS += '-DVERSION="1.3.1"' -DFLAC__NO_MD5 -DFLAC__INTEGER_ONLY_LIBRARY -DFLAC__NO_ASM change to: LOCAL_CFLAGS += -DVERSION="1.3.1" -DFLAC__NO_MD5 -DFLAC__INTEGER_ONLY_LIBRARY -DFLAC__NO_ASM Hope this will help

team0NE avatar Jan 29 '19 10:01 team0NE

In new 5.2.0 version got the same problem. Solution is similar -> TProj/jni/Android.mk line number 545 LOCAL_CFLAGS += '-DVERSION="1.3.1"' -DFLAC__NO_MD5 -DFLAC__INTEGER_ONLY_LIBRARY -DFLAC__NO_ASM change to: LOCAL_CFLAGS += -DVERSION="1.3.1" -DFLAC__NO_MD5 -DFLAC__INTEGER_ONLY_LIBRARY -DFLAC__NO_ASM Hope this will help

it works! thanks dude, this help me a lot.

Rave-Tian avatar Mar 15 '19 02:03 Rave-Tian

In new 5.2.0 version got the same problem. Solution is similar -> TProj/jni/Android.mk line number 545 LOCAL_CFLAGS += '-DVERSION="1.3.1"' -DFLAC__NO_MD5 -DFLAC__INTEGER_ONLY_LIBRARY -DFLAC__NO_ASM change to: LOCAL_CFLAGS += -DVERSION="1.3.1" -DFLAC__NO_MD5 -DFLAC__INTEGER_ONLY_LIBRARY -DFLAC__NO_ASM Hope this will help

i have this problem but icant fix it with LOCAL_CFLAGS += -DVERSION="1.3.1" -DFLAC__NO_MD5 -DFLAC__INTEGER_ONLY_LIBRARY -DFLAC__NO_ASM

aabolfazl avatar Apr 18 '19 20:04 aabolfazl