I am following this wiki: https://wiki.videolan.org/AndroidCompile/ to build libvlc native library for android. So far I have been able to compile and build apk using compile.sh which is described on the wiki. Now I am trying to build and run the whole project using android studio. I have selected build variant dev to run and build the apk. But the android studio produced apk size is smaller than the apk produced by using compile.sh. After analysing both apks I found that the libvlc.so file is missing from the android studio generated apk.
How can I build and run VLC for Android project using android studio?
I think the libvlc part of VLC-Android can only be built from CLI.
Related
I'm trying to create a test library from android application. I followed official google instruction, but when I'm trying to build, nothing happens. Android Studio does not create aar or apk file. Here is my gradle file and structure. Why it not building?
I have project created with Visula Basic 2017 cordova. When i build the project for Android it generates android-armv7-debug.apk and android-x86-debug.apk file automatically.
I need 64bit apk file.
I try to compile my Cordova Hybrid App from visual studio to apk file
After I deploy the project to Android / iOS the project bin folder still empty.
I try to upload the "www" folder to build.phonegap.com but I get error.
What is the best and correct way to compile the project (HTML, CSS, and JS) to APK for Android and IOS?
Thanks,
Tom
Update:
I try to build from the visual studio
this is my Project folder
When I try to build project from the visual studio on "Device" mode I get this error
1- If you have used Ripple simulator as the target, nothing will be generated in the bin folder. You need to switch the build configuration to "device" in order for the binaries to be generated
2 - The www folder that is generated by the Visual Studio template has nothing special and you shouldn't have issues with PhoneGap Build. If you have errors they are coming from your JS code itself
3 - To build the binaries for Android using the Multi-Device Hybrid extension for Visual Studio, you should be good by simply switching the build configuration to "device" instead of Ripple simulator. For iOS you need to use the Remote Build and Simulation Agent for iOS (which require have a Mac as the iOS tools are NOT available for Windows and you cannot generate the iOS binary directly on your Windows machine. Otherwise, you can consider using PhoneGap Build service
From the image the error looks to be similar to the one I was getting about my device not being recognized/found.
This answer explains how to get the APK directly just by setting the solution to Release, and only Building the project rather trying to do a full deploy to a device. It pretty much is the same answer as mentioned in point 3 above, just tested on a PhoneGap App solution.
I had a working phonegap project which I compiled using
phonegap build android
And then aligned and signed using ant
ant release
However, I had to format my computer, saved the folder on another drive, and copied it back after formatting. I installed jdk, android sdk, phonegap, ant, and when I try to compile it again (using the same command as before) I'm getting this error (which doesn't help at all, not even with --verbose):
[error] An error occurred while building the android project.
What do I need to do to be able to compile the project again? Also, do you recommend using an IDE instead of the phonegap CLI?
I recently downloaded the android studio and can't understand a few things.
I don't know gradle, and don't really need it, do I have to use it on android studio?
how do I create a run configuration without a normal android module?
Gradle is a project automation tool that builds upon the concepts of Apache Ant and Maven.
Android Studio is using Gradle as its build tool.