linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Build Android app with G729 support?


From: Sylvain Berfini
Subject: Re: [Linphone-developers] Build Android app with G729 support?
Date: Thu, 26 Mar 2020 14:17:49 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0

Hi Marc,

It seems you have a build issue that prevents the local maven repository to be created and thus the android-app to find the SDK.

Please attach your full SDK build logs (delete your build directory, start again from scratch and attach the output of all that).

Cheers,

Sylvain Berfini
Software Engineer @ Belledonne Communications

Le 26/03/2020 à 14:13, Marc Lavallée via Linphone-developers a écrit :
Le 20-03-24 à 04 h 38, Sylvain Berfini a écrit :

Hi Marc,
Bonjour Sylvain,

The LinphoneSdkBuildDir must be filled in the gradle.properties file
in your gradle home. Most of the time it is ~/.gradle/, but it can
differ.

Indeed even with a wrong path it will work because there is our Maven
repository that is also set up. Please note if your built SDK has a
version number lower than the last one in our Maven, Android Studio
will ignore it.
To workaround that, specify the version name of your built SDK exactly
in the implementation line.

If you want to be sure to use your locally built SDK, you can also
comment out our maven url in the repositories.
I tried your recommendations, and here's what happened:

There's one error when building the sdk:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':publishDebugPublicationToMavenRepository'.
Failed to publish publication 'debug' to repository 'maven'
    > Invalid publication 'debug': artifact file does not exist:
'/data500/data/linphone/linphone-sdk/build/linphone-sdk/bin/outputs/aar/linphone-sdk-android-debug.aar'

I got the same result when building with CMAKE_BUILD_TYPE set to Debug.

But because "linphone-sdk/bin/outputs/aar/linphone-sdk-android.aar" was
built, I tried to build the android app anyway.

I commented out the maven url in "linphone-android/app/build.gradle"
(url "https://linphone.org/maven_repository";)

I noticed that just above, the local maven location is set to "url
file(LinphoneSdkBuildDir + '/maven_repository/')", but there's no
maven_repository in LinphoneSdkBuildDir...

There's one error when building the android app:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task
':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration
':app:debugCompileClasspath'.
    > Could not find any matches for
org.linphone:linphone-sdk-android:4.4+ as no versions of
org.linphone:linphone-sdk-android are available.
      Required by:
          project :app

Because the sdk that was built is:

linphone-sdk/bin/distributions/linphone-sdk-android-4.4.0-alpha.165+b1b8f63.zip

I tried to set the implementation to 4.4.0-alpha.165+b1b8f63, but I got
a similar error:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task
':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration
':app:debugCompileClasspath'.
    > Could not find
org.linphone:linphone-sdk-android:4.4.0-alpha.165+b1b8f63.
      Required by:
          project :app

I don't know what to do next (because I'm not an experienced Android
developer).

Thanks for your attention.

Marc


Cheers,

Sylvain Berfini
Software Engineer @ Belledonne Communications

Le 23/03/2020 à 22:36, Marc Lavallée via Linphone-developers a écrit :
Hello Linphone devs.

This is my first message, so my question could be very basic (almost a
"user" question).

I can compile the latest git master of linphone-android, and now I'm
trying to add support for the G729 codec.

So I compiled the linphone-sdk specifically for Android, including
support for G729.

In the gragle.properties file I provided the path to
LinphoneSdkBuildDir, as explained in the README.

When I build and run the app on my phone, the G719 codec doesn't show in
the list of available codecs.

Something I noticed: if the provided path is wrong, there's no warning
or error message, so I wonder if LinphoneSdkBuildDir is used.

Thanks for your attention and your help.




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



reply via email to

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