linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-users] Build fails when generating APK


From: Sylvain Berfini
Subject: Re: [Linphone-users] Build fails when generating APK
Date: Tue, 13 Nov 2018 08:10:57 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

Do a git pull, this issue has been fixed.

Le 12/11/2018 à 17:30, pK a écrit :
Problem solved. (changed path to ANDROID_HOME from relative to absolute)

Soon after I posted about my issue yesterday, it occured to me (after reading some reports on the internet), that I'll look for classpath in ./gradlew assembleDebug --debug output. I found that -bootclasspath was looking for android-sdk inside the linphone-android folder, instead of outside (where it should). While changing the path in ANDROID_HOME fixed the problem, it also resulted in another error:

> Task :compileDebugJavaWithJavac
/media/trisquel/Samsung_1TB/Downloads/linphone-android/src/android/org/linphone/chat/GroupChatFragment.java:611: error: cannot find symbol
mChatRoomSecurityLevel.setVisibility(View.GONE);
^
symbol: variable mChatRoomSecurityLevel
location: class GroupChatFragment
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

> Task :compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 46s
29 actionable tasks: 27 executed, 2 up-to-date
Makefile:141: recipe for target 'generate-apk' failed
make: *** [generate-apk] Error 1


This turned out to be affecting the master branch only, however, I'm using the tagged releases anyway.

November 11, 2018 7:47 AM, "pK" <address@hidden> wrote:
Output of make:

> Task :liblinphone-sdk:compileDebugJavaWithJavac FAILED
Fatal Error: Unable to find package java.lang in classpath or bootclasspath

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':liblinphone-sdk:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 49s
26 actionable tasks: 24 executed, 2 up-to-date
Makefile:141: recipe for target 'generate-apk' failed
make: *** [generate-apk] Error 1


./gradlew assembleDebug --info further reveals

> Task :liblinphone-sdk:compileDebugJavaWithJavac FAILED
file or directory '/media/trisquel/Samsung_1TB/Downloads/linphone-android/liblinphone-sdk/build-types/debug/java', not found
Task ':liblinphone-sdk:compileDebugJavaWithJavac' is not up-to-date because:
Task has failed previously.
All input files are considered out-of-date for incremental task ':liblinphone-sdk:compileDebugJavaWithJavac'.
Compiling with source level 1.7 and target level 1.7.
:liblinphone-sdk:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
file or directory '/media/trisquel/Samsung_1TB/Downloads/linphone-android/liblinphone-sdk/build-types/debug/java', not found
Compiling with JDK Java compiler API.
Fatal Error: Unable to find package java.lang in classpath or bootclasspath
:liblinphone-sdk:compileDebugJavaWithJavac (Thread[Task worker for ':',5,main]) completed. Took 0.345 secs.


Compilation used to work, but (since the last boot) it doesn't anymore, and I can't find out why. I'm booting Trisquel 8.0 (Ubuntu 16.04 based) 64-bit from LiveDVD (internal OS is old).

--
I prefer to use encrypted email. My public key fingerprint is 97AA 0B87 C4E2 6140 BD12 2371 EEB0 D33D DA60 DF3E. Learn how to encrypt your email with the Email Self-Defense guide.

Preferujem použitie šifrovaného emailu. Môj odtlačok verejného kľúča je 97AA 0B87 C4E2 6140 BD12 2371 EEB0 D33D DA60 DF3E. Naučte sa ako šifrovať svoj email so Sprievodcom dedinčana svetom IT.

Preferuji použití šifrovaného emailu. Můj otisk veřejného klíče je 97AA 0B87 C4E2 6140 BD12 2371 EEB0 D33D DA60 DF3E. Naučte se jak šifrovat svůj email s průvodcem Emailové Sebeobrany.

Szívesebben használok titkosított emailt. Az én nyilvános kulcsom ujjlenyomata 97AA 0B87 C4E2 6140 BD12 2371 EEB0 D33D DA60 DF3E. Megtanulják hogyan kell titkosítani az emailt az Email Önvédelmi útmutatóval.


--
I prefer to use encrypted email. My public key fingerprint is 97AA 0B87 C4E2 6140 BD12 2371 EEB0 D33D DA60 DF3E. Learn how to encrypt your email with the Email Self-Defense guide.

Preferujem použitie šifrovaného emailu. Môj odtlačok verejného kľúča je 97AA 0B87 C4E2 6140 BD12 2371 EEB0 D33D DA60 DF3E. Naučte sa ako šifrovať svoj email so Sprievodcom dedinčana svetom IT.

Preferuji použití šifrovaného emailu. Můj otisk veřejného klíče je 97AA 0B87 C4E2 6140 BD12 2371 EEB0 D33D DA60 DF3E. Naučte se jak šifrovat svůj email s průvodcem Emailové Sebeobrany.

Szívesebben használok titkosított emailt. Az én nyilvános kulcsom ujjlenyomata 97AA 0B87 C4E2 6140 BD12 2371 EEB0 D33D DA60 DF3E. Megtanulják hogyan kell titkosítani az emailt az Email Önvédelmi útmutatóval.

_______________________________________________
Linphone-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-users

reply via email to

[Prev in Thread] Current Thread [Next in Thread]