I have 2 endpoints in my GAE Java project. When I use the GPE eclipse plugin to generate the client library for my Android project, the code is generated without any errors. (I don't know why the generated code is in the package com.google.api.services).
The problem is, when I launch my Android app, a NoClassDefFoundError is thrown for the class, DeviceInfoEndpoint$Builder, and the app crashes.
This is after I updated the ADT and the GAE plugin to the latest
version. It was actually working well before that.
I even tried with the endpoints.sh script to generate the client library. Getting an EntityExistsException on that. I am literally struck now.
Any help would be appreciated.
After more than 2 days of dead stop, found out that I needed to check Android Private libraries and Android 4.2 in (Build path -> Configure build path -> Order and Import).
https://stackoverflow.com/a/16784945/902572
Related
I'm trying to install MvvmCross 9.0.9 for a new beginner project, reading the steps for TipCalc tutorial and used the newest version of it (https://github.com/MvvmCross/MvvmCross-Samples/tree/master/TipCalc), which works fine. But if I try to install MvvmCross package for brand new project with NuGet it says this
or if I add the reference to XXX.Core it gives me:
Warning Project '..\XXX.Control.Core\XXX.Control.Core.csproj' targets 'net6.0'. It cannot be referenced by a project that targets 'MonoAndroid,Version=v12.0 .
For XXX.Core there is no problem installing MvvmCross. Can anyone tell how to set up a new project without this behavior? I don't know what exactly I could have overlooked.
First I created a new .Core project with .NET6 library class as in the tutorial mentioned and installed MvvmCross package, added ViewModels etc.. No problems here. Then added the .Droid Xamarin project (Blank App). Everything step by step. After getting error, I tried different target frameworks changed here and restarted VS and rebuild. Still same behavior.
Unfortunately I haven't been able to find much about it here and as a newcomer to MvvmCross/Xamarin I also have difficulties finding current examples or tutorials for the latest version, so I welcome any help.
Just as the message said, the MvvmCross 9.0.9 is support the .net6.0 not the .NetFramwokr and MonoAndroid which the xamarin.android used.
So if you want to use the MvvmCross nuget package in the Xamarin.Android project, you need to use the lower version which supports the .NetFramwokr and MonoAndroid. Such as the MvvmCross 8.0.2.
You can also try to migrate the xamarin.android project to the .net 6.0 according to this document about Migrating Xamarin.Android Applications to .NET 6. And then you can install the MvvmCross 9.0.9 in the migrated project.
In addition, you said:
No problems here. Then added the .Droid Xamarin project (Blank App). Everything step by step. After getting error, I tried different target frameworks changed here and restarted VS and rebuild
I can't understand what does the added the .Droid Xamarin project (Blank App) mean. But you can create a new .net core app which target framework is .net 6.0. Such as:
And then copy the code and file in your old project to this new project. After this, you can also use the MvvmCross 9.0.9 in it.
Has anyone successfully able to run appium test from Android Studio ? I would appreciate if you could pass on to me a working sample of it.
I have been trying to get the setup running for over two weeks now. On trying to run test the build fails at preDexDebug step with below error
trouble processing "javax/xml/XMLConstants.class"
Ill-advised or mistaken usage of a core class (java.* or javax.*) when not building a core library. This is often due to inadvertently including a core library file in your application's project, when using an IDE (such as Eclipse). If you are sure you're not intentionally defining a core class, then this is the most likely explanation of what's going on.
However, you might actually be trying to define a class in a core namespace, the source of which you may have taken, for example from a non-Android virtual machine project. This will most assuredly not work. At a minimum, it jeopardizes the compatibility of your app with future versions of the platform.
It is also often of questionable legality. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine distribution, as opposed to compiling an application -- then use the \"--core-library\" option to suppress this error message.
.......... and the error goes on.
I tried using the --core-library option. however the error still persists.
I am making use of maven to gather the dependencies for appium.
compile 'io.appium:java-client:3.2.0'
My primary question: is appium and its dependencies compatible to run with Android Studio? Because it runs pretty smooth on Eclipse
Commenting io.appium dependency solve the mentioned build error, but I have to comment my tests.
After exhausting my own knowledge, I read a couple of posts on stackoverflow and other internet resources around my problem, but there is no concrete solution. It is more of a hit-and-try mechanism saying "this might work". I tried them, but with no success.
Hence, I would like to know
Firstly, if appium and its dependencies work very well with Android Studio
A zip of working solution (if possible)
Any help is much appreciated.
Steps for Appium Setup in Android Studio:
Download - Android Studio Appium Java Client Selenium Client Library Appium Server Install Java
Install Android Studio please follow the steps given in the link to
Install android studio step by step on windows machine click here After installation of android studio ,open android studio and create a new project - How to create android project?
Add the downloaded Appium jars into your project - click on project -> click on app->copy all the jars in lib. Select the copied jars except Selenium, Java client and Junit Jar ,then right click on it and click on "Add as Library".
Click on build.gradle in app you will see all the libs added like below screenshot add junit:4.12.Sync the project or Re-build the project. It should show "Build Successful Message"
Now you are ready to write your first test case - right click on the package and click on "Create Java Class". Copy given test case sample.
Running the Test case-
Click on build variant Select Unit Testing Start the appium server with Specific port "4444"click here Connect device with USB debugging on or start an emulator. Right click on the test class and click on "Run"
This steps for taken from this post and video.
I've been on this for past few days, may be because am not that strong on the JAVA side... I am trying to get the list of an android device's email accounts (or simply - accounts) using Cordova. There is a plugin available for this but it's compatible only for a Cordova app with version less than 2.9.
So, I built a new plugin with the instruction available at phonegap website and hosted this plugin on the GIT. While adding this to my project, I receive errors related to the JS and also, my main JAVA class - accountmanager shows an error at the "Context".
Can anybody help me looking at the plugin I tried to bring together with the help of this SO question and phoengap's plugin development guide...
Is my plugin a complete one at all? Kindly guide me..
UPDATE:
I updated my JAVA and javascript files, and now when I add the plugin, I get a new error -as follows -
Uncaught module com.am.accountmanager.accountmanager already defined : line 79 in cordova.js
Here is a working/tested plugin for retrieving an android device information - This includes every piece of information about an android device...
I am new to Android and I want to develop one small application using Google Java Api Client inside Netbeans, which I already developed on JAVA using swing and it is working correctly.
My netbeans is ready to work for Android But I coudn't figured out how to setup the android project to use the Google Java API client.
Can someone please provide me the detail tutorial to setup the Android project using Google Java Api Client?
I am not sure may I need to do additional processing on google java api client library which is downloded form here.
My Android setup is working correctly on Netbeans.
Can someone please provide me a detail explanation on this?
Thanks in Advance.
Put JAR files from a library that you want to use into lib folder of your android project and you will be able to use it and it will be bundled into .apk too. I am assuming that you have an android project (using nbandroid plugin. I am not sure about maven archetype for android development).
-Radim
I'm using RequestFactory in an Android Connected AppEngine project with a shared folder. The Eclipse AnnotationProcessor (that does the interface validation) works fine for the AppEngine project, but does not generate the MyRequestFactoryDeobfuscatorBuilder.java class for the Android project. It seems it does not do anything when I build the project. My project properties are like described in http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation.
Now my question: how can I obtain any information why the Interface Validation is not working? There is nothing in my logs or under "Problems".
I had the same problem - both projects were set up as per the link you provided.
I fixed it by changing the compiler version of BOTH the app engine and the Android project to 1.6.
The app engine was 1.4 when I imported it and I changed it to 1.6 (even though the workspace is set to 1.6). It didn't start working until I changed the compiler version of the Android project though. It was automatically set to 1.5.
Good luck