android support-v7-appcomat compiling issue - android

after I updated Android SDK Tools and ADT to 22.6, I found a error in android-support-v7-appcompat(I created a project for Androidsupport class):
android-support-v7-appcompat] Using 1.7 requires compiling with Android 4.4 (KitKat); currently using API 16
So I am wondering how to fix it and will it affect projects which use the support class before the update.
thx

Import this library from you Android ADT Bundle.
/Eclipse Android/adt-bundle-mac-x86_64-20140321/sdk/extras/android/support/v7
Use this library in the Android Project. The issue will be FIX.
Note : You need to locate your V7 library from your Android ADT
Hope this helps

Related

Errors when trying to update NuGet packages

When I try to update the NuGet packages for my solution, I get a set of errors as follows and however methods I tried, did not resolve the problem. Can someone please explain me and help me resolve this problem? Thank you in advance.
The error message explains the problem. The latest version of the support library is 25.3.1 which is Android 7. Your project targets Android 6. So either change your project's target (in Project Options|General|Target framework) to 7 (or 7.1) or use version 23 of the support library.
As #daramasala said in the reply, "latest version of the support library is 25.3.1 which is Android 7". In my project, the Target Android Version was already set to 7, but then I set the Compile using Android version to Android 7 as well, and after that, I could update the NuGet packages without an issue.
You can set the Target Android Version, Compile using Android version as well as the Minimum Android version by going to project Properties from the Application section....

Updating Android Studio from 2.1.2 to 2.2 - Could not find Data Binding Library

The error I get is as follows:
Error:Could not find com.android.databinding:library:1.2.1.
Required by:
XYZAPP:app:unspecified
Search in build.gradle files
I had same issue. Update Android Support Repository to rev. 38 in Android SDK fixed that issue for me.
Previously I updated Android SDK Tools, Android SDK Platform-tools to latest versions and install Android 7.0 SDK Platform, this also may help.

Adding Xamarin support library v4

Can you please suggest me how do I manually add xamarin support library v4 jar file to the Components or some other way so that I would be able to use DialogFragment and other features.
The same question has also been asked in this but no one has proposed the solution.
I am actually working on xamarin using visual studio 2012. I am unable to use DialogFragment and other features because of not proper configuration of xamarin support library v4 in visual studio. I have already installed xamarin support library v4 using sdk manager and it exists in C:\Users\username\AppData\Local\Android\android-sdk\extras\android\support\v4
but visual studio is not loading this library, although it loads automatically. This path contains android-support-v4.jar and src folder as well.
I have also tried installing using nuget but I get the following error
Could not install package 'Xamarin.Android.Support.v4 22.2.1.0'. You
are trying to install this package into a project that targets
'MonoAndroid,Version=v2.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.
The Xamarin.Android.Support.v4 supports android 1.6 and higher.
I have looked on this answer but it did not help me.
Thank you.

Migrating to Android Studio including libpd

With the release of Android Studio 1.0 (AS) i want to migrate from Eclipse. Generally I need no other library then libpd (PureData) for Audio synthesis. The Problem is, that libpd for android is geared to the needs of Eclipse. So in Eclipse everything is working as expected.
The only information I could found was that: Using libpd in Android Studio So I know libpd and Android Studio could work together but here are maybe some other problems.
I started to generate a new simple project (MinSDK 10 - CompileSDK 21 - BuildTools 21.1.2) just with a blank activity. I can deploy this simple app to my Nexus and everything is fine.
Then I import :PDCore and :AndroidMidi as Module into my AS project and I get the Gradle build-error: Error:The SDK Build Tools revision (17.0.0) is too low for project ':PdCore'. Minimum required is 19.1.0
I installed API 19 and Build Tools version 19.1 via the SDK Manager but that's not solving my problem.
I changed the buildToolsVersion of the apps build.gradle file to "19.1.0" but that's not solving my problem.
Any advices to get Gradle working probably?
Maybe anyone got a sample Android Studio project with libpd to share?
Thanks in advance!
FYI: I wrote some posts regarding migrating to Android Studio using libpd. Take a look here:
http://www.journal.deviantdev.com/using-libpd-with-android-studio/
http://www.journal.deviantdev.com/update-using-libpd-with-android-studio/
http://www.journal.deviantdev.com/sample-libpd-android-studio/
You have to change the build.gradle of the :PDCore and :AndroidMidi modules. At the moment they are using 17, update the BuildTools to the newest version (21.1.2). This should solve your problem.
I created a fork of the libpd-for-android and migrated it to Android Studio. You can clone it and open it in Android Studio as a 'Non Android Studio Project'. This worked very nicely for me and you can also now created an .aar file and use it in your Android App ( instead of copying the whole code or using git submodules):
https://github.com/tkirshboim/pd-for-android

Target 'Android 1.5' does not support building project with libraries

I'm trying to build a project in Android 1.5 that references another Android (library) project compiled against Android 1.5 and I keep seeing this error in the Console in Eclipse:
Target 'Android 1.5' does not support building project with libraries.
I'm running Eclipse 3.5, and version 0.9.7 of the ADT.
I followed the instructions here:
http://developer.android.com/guide/developing/eclipse-adt.html
What gives?
The problem was that I was using the wrong revision of Android 1.5. Table 1 on this page:
http://developer.android.com/guide/developing/eclipse-adt.html
states that you must be using revision 4 or later of Android 1.5 to use Library projects.

Categories

Resources