Mozilla components concept engine dependency not working - android

I am trying to build a web browser by following this link
https://medium.com/firefox-mobile-engineering/creating-a-simple-browser-with-mozilla-android-components-b33349cde4d0
but I android studio is unable to find mozilla concept-engine in xml file as shown
These are the dependencies I have used in my project
View of my installed external libraries as we can clearly see concept engine libraries are installed
I have tried invalidate and restart and this is not working

Related

How to fix Module depends on one or more Android Libraries but is a Jar when building Cordova App

I'm currently working on a Hybrid Mobile App using Cordova Tools for Visual Studio to render a Azure published Web App inside a mobile container.
The Web App is developed using C# and ASP.Net Web Forms. It also uses Azure for the Database storage. Everything works fine when running the Cordova app in the browser.
The problem that I have is that when I try to build the app into an .apk file it throws this error:
"Module 'com.microsoft.azure:azure-mobile-android:3.3.0' depends on one or more Android Libraries but is a Jar".
The only solutions that I came across were involving a bower.gradle file, but in my case the bower file it's a .json file so I can't use the "compile com..." inside the dependencies tag.
Any help will be really appreciated,
Thanks in advance!
Razvan T.
The problem was solved. The file where the dependencies were supposed to be added was build.gradle.
The solution was to open the project in Android Studio, make the changes and build the .apk successfully.
I hope this will help anyone that encounters the issue.
Thanks!!

use chromeview in android studio

i want to work with web V.R. in android studio. i found that i should use gecko view or chrome view or something like them. but i cant find anything in the web. all the references are belong to eclipse and don't work with android studio.
alternatively i put my files in external storage and load them with chrome but it didn't work properly.
https://crosswalk-project.org/documentation/downloads.html
https://github.com/pwnall/chromeview
I use these but i cant run my project
you can import eclipse library project in android studio as well. Please refer to this link

Android NativeActivity that references a dynamic library fails to deploy

The environment...
I have a brand new Visual Studio 2015 Android NDK Solution.
This contains 2 projects (the default template code that is generated by visual studio):
A native activity. This is where I want to put Android specific code. It has some default code which fades the screen colour between green and black.
A 'Packaging' project to help with deployment.
I have deployed this successfully to an Intel HAXM virtual device as well as to a real device connected via USB. All good so far.
I then added an Android dynamic library project (.so) - this is where I want to put core code (platform agnostic).
I added a reference to this Core library from the native activity project.
Everything compiles and links fine. I can still create an .APK file.
Other info:
Android SDK 5.1 (Android-22)
Android NDK 21
x86
Clang 3.8
C++ 11
Not using Make files or Gradle
The problem...
Now whenever I deploy to the virtual/real device I get the following error (taken from logcat)
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.NATester/android.app.NativeActivity}: java.lang.IllegalArgumentException: Unable to load native library: /data/app/com.NATester-2/lib/x86/libNATester.so
Things I have tried...
changing the Core library to static (.a)
checked the android device to see if the file exists - it does exist.
Manually deploying the .APK to the android device.
Some articles have suggested using Java code to load the libraries - I want to avoid calling Java code e.g. System.LoadLibrary as this seems like a hack - I feel that it should be possible to to have a pure C++ application on android. I can't be the only person to run into this issue?!
This looks relevant but old and again an unnecessary hack for what must be very common situation
- Can't load native shared library with dependencies in a native activity app
- https://github.com/ikonst/android-dl
For what its worth, I am a seasoned C# developer with Visual Studio (15 years).
I therefore take a lot of things for granted when developing apps - this is my first project using C++/Android and it seems more of a manual battle to get everything to work!
Been struggling for a while but managed to deploy the libraries, quite easy in the end.
Right click on the project [theProject (Andorid-xx)] in the Solution Explorer and select add new item, add your .so library.
Right click on the newly added library and select properties, item type should be library, set Content to Yes, this will deploy the lib.

ARToolKIT for android issues in examples

I copy whole code base of ARToolkit and try to run android studio examples but each example just crashed on start. Than I download android sdk bundle from Artoolkit website, in this only eclipse examples are included so I migrate it into android studio(using default android studio migration). Now ARSimple is running but for any example including native code it gives linking error. For exaple for ARSimpleNativeCars i got the following error while making in android studio.
Error:(49, 24) AR/gsub_es.h: No such file or directory
in order to run the native examples you need to run the build script first. Unfortunately they are currently only working on OSX and Linux. You can find them in this directory in your GitHub clone:
https://github.com/artoolkit/artoolkit5/tree/master/android
Also you can find a documentation on how to port projects from Eclipse to AS here:
https://github.com/artoolkit/artoolkit5/tree/master/AndroidStudioProjects/Docs

Implementing plugin in phonegap

I am developing android mobile application using phonegap.I want to implement “ContactPicker plugin“ from github webstie.For implement plugin I refered below article
"https://github.com/sconover/phonegap-android-plugin-examples"
In above article they explained the path of plugin, But on my machine I did not find the path
"src/com/phonegap/HelloWorldPlugin/HelloWorldPlugin.java” In my plugin. Also I was unable to get the file HelloWorldPlugin.java
I tried to install plugin using command line tool but not sure its installed or not.
I am unable to use this plugin in my phonegap application. I am stuckup with very basic step of copying files and using the same in phonegap.
Don't use old plugins, this one is about four years old. A lot of things changes since 2010.
Use the original cordova plugin: org.apache.cordova.contacts

Categories

Resources