build android using gradle and cpp-libraray - gradle

I want to build android libs (.a and .so) using gradle using cpp-library plugin.
I search a bit and checked ndk samples. at least ndk samples are using cmake as backend and old model which seems to be removed in gradle 8.0
does have someone experience? are there any ways to implement it?

Related

Can't find R.java in Android Studio 3.6(newest release)

When I use Android Studio 3.5, I've known where R.java is.
But in Android Studio 3.6, the newest version, the location of R.java is changed.
Where is it? Thanks.
The change is in android gradle plugin 3.6, from the official android site:
Additionally, Android Gradle plugin has made significant performance
improvement for annotation processing/KAPT for large projects. This is
caused by AGP now generating R class bytecode directly, instead of
.java files.
android studio 3.6

Integrating platform specific code into Gluon Mobile project

I would like to integrate some platform (Android) specific code into my Gluon Mobile project. So I imported the GoNative project into Eclipse as a new Gradle project in order to learn from it how to do that. The code itself is clear so far but why is Eclipse not able to resolve any Android code references. Is there anything wrong with the gradle scripts or did I miss something?

ArcGIS Runtime SDK for Xamarin?

I downloaded ArcGIS Runtime SDK for Xamarin (Quartz Beta).
On installing it out of the box in portable project I get following error :
Could not install package 'Esri.ArcGISRuntime.Xamarin.Forms
100.0.0.1369-beta'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile7
I tried to change the profile number but it doesn't seem to work. How should I proceed?
The sample code from their github project shows that they set up their projects using a shared code approach rather than a Portable Class Library. I'm not sure they designed their library with PCL support in mind.
In the beta forums, an esri employee answered this with regards to whether the SDK could support PCL:
Unfortunately PCL isn't possible for the Runtime due to some of the native dependencies. We recommend using shared projects to share the code you otherwise would have put in a PCL.

Dependencies from Android Gradle build - or how to build an Android wear app with Ant these days

Where does Gradle pulls wearable aar files from? I'm specifically looking for compile 'com.google.android.support:wearable:*' and compile 'com.google.android.gms:play-services-wearable:*'. Are there libprojects (exploded aar) for that as well?
I wanted to integrate Android Wear with a legacy ant build. For that to work, I had to create a dummy hello world Wear project on Android Studio, run a gradle script to export the aar dependencies on disk, unzip the aar files and mess around with the directory structure and manually delete some files from the classes.jar archive for it to work as a library project on Android Studio and Ant.
I could not find those libraries in neither the SDK nor Maven public repository.
Google has some documentation on how to package your wear app manually, assuming you have the wear apk ready, but is does not mention how to build the wear project without Gradle.
Any points appreciated.
Wearable support library is sort of a hidden inside of the docs for Android Wear development. This is the link:
https://developer.android.com/shareables/training/wearable-support-lib.zip

PCL Build 1.7 on windows 7 x64, vs10

hi! Help me please to build pcl 1.7 on windows 7 x64, vs10. As i know there are not 3rd party dependencies. such as boost, vtk etc. so first of all i want to build and install boost 1.55. there are also no cmake config files and cmakelists in boost. It needs for me to run pcl 3D recognition example.
Since your question is quite general, you get a general answer...
PCL has a good tutorial on how to build PCL on Windows.
There are dependencies on other software. There is also a tutorial on how to build them from source.
Have you done those tutorials and still have problems? If yes, be more precise.

Resources