Hello Stack Overflow Community
My problem is simply what you see in the title I cant get the signal R client pack into my Project In Visual Studio. Attempting to do so results in this error.
Severity Code Description Project File Line
Error Could not install package 'Microsoft.AspNet.SignalR.Client 2.2.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v4.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0
I need the package and have been trying various workarounds but have not yet came out successful. Any tips or info would be very much appreciated.
I tried to add SignalR to an Android project and I got the very same error. I >think this could do the trick, try installing this component ( >components.xamarin.com/view/signalr ) in your android project (you will need to >remove newtonsoft json if it´s already installed) – xleon
This is just a Repost of xleons answer so I can mark the question as answered I am new to stack overflow so I hope this is appropriate.
Thanks for the Help #xleon This was exactly the solution I was looking for
Related
I'm currently investigating an issue about why an Android project isn't building its native libraries (imported from an external project). The issue is probably the same as the one found in another unanswered question.
Digging into the build procedure source code, I realized that it might be related to the JSON files the Android Gradle plugin generates. If I understood correctly, those JSON files are generated by a CMake generator called Android Gradle - Ninja.
However, I can't find the source code for that generator anywhere. Does anyone have any idea where it might be located?
The answer was found by #costy.petrisor in the comments in google issue tracker ticket #137169329, where <ar...#google.com> answered:
Status: Won't Fix (Intended Behavior)
Unfortunately it is not public, and we currently have no plans to upstream it.
I am building an Android app that I want to open google maps with the click of a button. I want the app to find the current location of the user and give them directions to a predefined address. I started building the application before I realized there were special steps that you have to take to include this functionality. To add this feature to my project I followed the directions on these two sites:
https://developer.android.com/google/play-services/setup.html
https://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject
The problem is on the second site, when i added the library to my already existing project it caused all of my code that has findViewById(R.id.whatever) or setContentView(R.layout.whatever) to become errors. It is now telling me that i need to import the class R. If I do that it then gives me error messages on the names of all my xml files.
For example in my MainActivity it is telling me that i should change setContentView(R.layout.activity_main) to setContentView(R.layout.activity_list_item) and does this for all references to my xml files for the entire project.
I tried going back and removing the google play services library from the project and starting over but when I removed it the errors still persists. I also tried using the "fix project setup" option in Eclipse but it didn't fix the problem.
I'm wondering if anyone here has experienced this problem before? If so, how can I fix it? The application had no errors before I tried to include the google play services library. I am new to Android development so a lot of the information I have found has been either confusing to understand or doesn't seem to include enough details for me to figure it out. Thanks for your help!
Look at your imports, and check if you are importing the correct R.java from your application package, not from the android package.
Check also if your XMLs don't contain errors, otherwise R.java won't be generated.
In my case android-maps-library had to errors in two files (I have forgotten their names), I edited the two files removing errors my self. And finally I was able to used it quite nice.
i think you have correct yout Project build target, and this how:
right click on your project folder in the package explorer->propreties->Android
then porject build target and choose you Android target (Android x.xx)
but before that you need to remove import android.R;
When i run my project , I get " Your project contains error(s) , please them before running your application" this error . I searched this error on Google , There i got a lot of solutions all these did not work for me . I cleaned and Build my project , Restart my eclipse , in .android deleted debug.keystore and clean and build my project , But did not work for me . Please help me .
Thanks in Advance
Follow My steps :
There are many possiblity of this type of error try by one of the following .
Step 1 Right Click on your app then check library and order and export tab there may
be any error remove that according to your project .
Step 2 Right Click on your app then go to java compiler and made change of
compiler level
Step 3 If you have added any library project check that also
It works for me hope it will work for you also .
In my case, all the solutions you generally come across in the Net turned out inappropriate.
What I have recently found is that if you wanted to import a given Android project,
and you used General/Existing Projects into Workspace or Archive File,
you may probably face the issue above when there is no problem in the source itself.
What I did was using [Existing Android Code Into Workspace] instead of the above.
With this authentic way of importing Android project, such an error did not come about.
//
Of course, this applies when you properly added some necessary libraries and you have
no issue with your source codes.
currently I'm trying to implement and apply a pull to refresh list view for my sample app. Now I found out about chrisbanes pull to refresh here. Yes I know it's no longer maintaned but I can't find any alternatives. Anyway I tried to read a lot of questions about importing a project and I think I'm always lost about it especially with the gradle structure.
What I tried so far is to import the project in eclipse then gradle export and copy paste it on a directory named libraries following the steps in this link. I get an error saying Cannot create class-file.
As for the other test I've done I always get a gradle error. I forgot the exact error message but most of it are because of gradle.build.
Now can anyone tell me on the steps on how I can import this project library for my Android Studio project on a step by step basis? My apologies for asking too much.
I followed the direction of this page
http://sourceforge.net/p/jmrtd/code/1490/tree/trunk/androidclient/
and when I executed the last command ant -f build_jar_deps.xml
I faced the following error,
[exec] svn: E170000: URL 'https://scuba.svn.sourceforge.net/svnroot/scuba/s
cuba_sc_indep' doesn't exist
I visited the above link and I see page not found error
What is the problem ?
I know I'm a bit late with reply, but if anybody is still interested in JMRTD Android app, I have developed a new project from scratch:
https://github.com/tananaev/passport-reader
It's a standard Gradle project, so it's very easy to build from command line or Android Studio. All third party libraries, including JMRTD, are downloaded automatically from Maven.
You have to download the jarjar1.3.jar and change the path.