I am building a fork of linphone and am trying to rename the package to my own app name
Before it built without problems.
AfterI ran a search-replace for .linphone in the entire project (except for the
implementation '.linphone:linphone-sdk-android:5.3+'
in app/build.gradle)and renamed the linphone directory it errors with
> Could not find any matches for .linphone.minimal:linphone-sdk-android:5.3+ as no versions of .linphone.minimal:linphone-sdk-android are available.
Searched in the following locations:
- .xml
- .xml
- .xml
- .xml
I did already added the
maven {
url "/"
}
to the repositories block in the top level build.gradle and replaced
implementation '.linphone:linphone-sdk-android:5.3+'
with
debugImplementation ".linphone:linphone-sdk-android-debug:5.3+"
releaseImplementation ".linphone:linphone-sdk-android:5.3+"
in app/build.gradle as suggested in /Android/. Note however how the linphone repo is not listed among the locations searched for.
I've ran
./gradlew clean
./gradlew --refresh-dependencies
and then ran the build but it still gives me the same error.
Adding
implementation files('linphone-sdk.jar')
gives me the error
> Could not find method implementation() for arguments [file collection] on object of type .gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
I am building a fork of linphone and am trying to rename the package to my own app name
Before it built without problems.
AfterI ran a search-replace for .linphone in the entire project (except for the
implementation '.linphone:linphone-sdk-android:5.3+'
in app/build.gradle)and renamed the linphone directory it errors with
> Could not find any matches for .linphone.minimal:linphone-sdk-android:5.3+ as no versions of .linphone.minimal:linphone-sdk-android are available.
Searched in the following locations:
- https://dl.google/dl/android/maven2//linphone/minimal/linphone-sdk-android/maven-metadata.xml
- https://plugins.gradle./m2//linphone/minimal/linphone-sdk-android/maven-metadata.xml
- https://www.jitpack.io//linphone/minimal/linphone-sdk-android/maven-metadata.xml
- https://repo.maven.apache./maven2//linphone/minimal/linphone-sdk-android/maven-metadata.xml
I did already added the
maven {
url "https://linphone./maven_repository/"
}
to the repositories block in the top level build.gradle and replaced
implementation '.linphone:linphone-sdk-android:5.3+'
with
debugImplementation ".linphone:linphone-sdk-android-debug:5.3+"
releaseImplementation ".linphone:linphone-sdk-android:5.3+"
in app/build.gradle as suggested in https://wiki.linphone./xwiki/wiki/public/view/Lib/Getting%20started/Android/. Note however how the linphone repo is not listed among the locations searched for.
I've ran
./gradlew clean
./gradlew --refresh-dependencies
and then ran the build but it still gives me the same error.
Adding
implementation files('linphone-sdk.jar')
gives me the error
> Could not find method implementation() for arguments [file collection] on object of type .gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Share
Improve this question
asked Nov 19, 2024 at 16:00
Pasqui23Pasqui23
594 bronze badges
3 Answers
Reset to default 1Seems like they changed repository URL. Early I had
maven {url "https://linphone./maven_repository/"}
in build.gradle project-level file and faced the same issue.
Now I have replaced it with
maven {url "https://download.linphone./maven_repository/"}
Found this in their commit on github: https://github/BelledonneCommunications/linphone-android/commit/c4eb74ff0dc25a9476eb71113059b2f7599183eb
Now project builds fine.
According to https://gitlab.linphone./BC/public/linphone-android#create-an-apk-with-a-different-package-name, you don't need to do a search/replace of .linphone package name to replace it by yours, simply to set the one you want in the build.gradle file in the packageName variable.
Same here. I cant even compile the latest android version 5.2: https://github/BelledonneCommunications/linphone-android/tree/release/5.2#js-repo-pjax-container
But, using the arr file, works.
// implementation '.linphone:linphone-sdk-android:5.3+'
implementation files('linphone-sdk-android-5.3.95.aar')
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742416014a4439758.html
评论列表(0条)