eclipse android app error 'Android Dependencies' - android

I have this error in my first android project
it sats
[The container 'Android Dependencies' references non existing library 'E:\project workspace\appcompat_v7\bin\appcompat_v7.jar' TheSmartHome Build path Build Path Problem]

Go to Project->Build Automatically and enable it.
Go to: Project > Clean > Clean all projects.
right-click the .jar files (there will be two files select android-support-v4.jar) and then select Build Path > Add to Build Path.
also try The container 'Android Dependencies' references non existing library 'facebook-android-sdk\facebook\bin\com_facebook_android.jar'

Related

Android Twitter fabric library error

I have integrated twitter fabric sdk in android project. It has 5 libraries imported in workspace with project. It was working fine. I have removed the project from workspace and import it again, now all libraries showing error and after run Clean+build project command it is not solving.
error message:
The project cannot be built until build path errors are resolved MicroSoftTechEd Unknown Java Problem
The container 'Android Dependencies' references non existing library 'D:\Microsoftteched_data\MicroSoftTechEd\kit-libs\io-fabric-sdk-android_fabric\bin\io-fabric-sdk-android_fabric.jar' com-twitter-sdk-android_twitter-core Build path Build Path Problem
The container 'Android Dependencies' references non existing library 'D:\Microsoftteched_data\MicroSoftTechEd\kit-libs\com-twitter-sdk-android_twitter-core\bin\com-twitter-sdk-android_twitter-core.jar' com-twitter-sdk-android_tweet-ui Build path Build Path Problem
The container 'Android Dependencies' references non existing library 'D:\Microsoftteched_data\MicroSoftTechEd\kit-libs\io-fabric-sdk-android_fabric\bin\io-fabric-sdk-android_fabric.jar' com-twitter-sdk-android_tweet-composer Build path Build Path Problem
The container 'Android Dependencies' references non existing library 'D:\Microsoftteched_data\MicroSoftTechEd\kit-libs\com-twitter-sdk-android_twitter\bin\com-twitter-sdk-android_twitter.jar' MicroSoftTechEd Build path Build Path Problem
The project cannot be built until build path errors are resolved com-digits-sdk-android_digits Unknown Java Problem
The container 'Android Dependencies' references non existing library 'D:\Microsoftteched_data\MicroSoftTechEd\kit-libs\com-twitter-sdk-android_twitter-core\bin\com-twitter-sdk-android_twitter-core.jar' com-digits-sdk-android_digits Build path Build Path Problem
The container 'Android Dependencies' references non existing library 'D:\Microsoftteched_data\MicroSoftTechEd\kit-libs\com-digits-sdk-android_digits\bin\com-digits-sdk-android_digits.jar' com-twitter-sdk-android_twitter Build path Build Path Problem
solution required.
Thanks in advance

How do I add the appcompat library to an android project in netbeans?

I have the support libraries installed via the SDK manager.
I have copied the C:\Program Files\Android\android-sdk\extras\android\support\v7\appcompat folder to my projects libs folder.
I have added the \tools folder of the sdk to my command line path. I have then run
android update project --path . --library C:\Users\srayner\dev\android\AndroidTest1\libs\appcompat
But now netbeans gives me this error;
Failed to resolve library path: C:\Users\srayner\dev\android\AndroidTest1\libs\appcompat
What is the correct method to setup an android support library with resouses in netbeans?
I have successfully build and added the appcompat project in NetBeans.
Create a new android project in netbeans - I called mine "appcompat".
Build your new project just make sure it can be successfully build.
Delete everything inside the src directory and rebuild. My project just contained the default MainActivity that was created by NetBeans. You don't need it.
Navigate to your android sdk install directory
"androidSdkPath\extras\android\support\v7\appcompat and copy all
the contents within that folder
Paste the copied contents to the android project that you
created in step 1 (again mine was named as appcompat).
Very important - Open project.properties and ensure that the "target" property matches the following: "target=android-21"
Build your project and Voila... you should be all set.
If you are still having issues compiling the project that will be using the appcompat library, change your project library properties target=android-21"

Problems with facebook-android-sdk

I am following this tutorial: https://developers.facebook.com/docs/android/getting-started but after importing the samples I get many errors. I had to install other version of eclipse and two different version of the facebook-android-sdk since version 3.15.0 did not have the bin folder to install the Facebook app on the emulator. The errors I get are the following: (note that adt-bundle-windows-x86-20131030\sdk\ was the eclipse previous version, I had to install a new one since the old one was not working properly anymore).
Description Resource Path Location Type
The project cannot be built until build path errors are resolved SwitchUserSample Unknown Java Problem
The project cannot be built until build path errors are resolved GraphApiSample Unknown Java Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Desarrollo\adt-bundle-windows-x86-20131030\sdk\tools\support\annotations.jar' FacebookSDK Build path Build Path Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk- 3.14.1\facebook\bin\facebooksdk.jar' HelloFacebookSample Build path Build Path Problem
The project cannot be built until build path errors are resolved RPSSample Unknown Java Problem
The project cannot be built until build path errors are resolved Scrumptious Unknown Java Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar' GraphApiSample Build path Build Path Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar' Scrumptious Build path Build Path Problem
The project cannot be built until build path errors are resolved ProfilePictureSample Unknown Java Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar' RPSSample Build path Build Path Problem
The project cannot be built until build path errors are resolved SessionLoginSample Unknown Java Problem
The project cannot be built until build path errors are resolved PlacePickerSample Unknown Java Problem
The project cannot be built until build path errors are resolved NativeAdSample Unknown Java Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar' PlacePickerSample Build path Build Path Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar' ProfilePictureSample Build path Build Path Problem
The project cannot be built until build path errors are resolved AdUnitsSample Unknown Java Problem
The project cannot be built until build path errors are resolved HelloFacebookSample Unknown Java Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Desarrollo\adt-bundle-windows-x86-20131030\sdk\tools\support\annotations.jar' NativeAdSample Build path Build Path Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar' FriendPickerSample Build path Build Path Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Desarrollo\adt-bundle-windows-x86-20131030\sdk\tools\support\annotations.jar' AdUnitsSample Build path Build Path Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar' SessionLoginSample Build path Build Path Problem
The container 'Android Dependencies' references non existing library 'C:\Users\USER\Dropbox\PruebaTandem\facebook-android-sdk-3.14.1\facebook\bin\facebooksdk.jar' SwitchUserSample Build path Build Path Problem
The project cannot be built until build path errors are resolved FacebookSDK Unknown Java Problem
The project cannot be built until build path errors are resolved FriendPickerSample Unknown Java Problem
Thanks!
I also had this problem and solved it as follows:
Go to android-sdk\extras\android\support\annotations and copy android-support-annotations.jar and paste it in android-sdk\tools\support.
Rename to annotations
Just close all sample projects that is referencing FacebookSDK, clean and build FacebookSDK, facebooksdk.jar will be created.

How do you ensure resources (e.g. styles) of a support library project (e.g. android-support-v7-appcompat), are added to your project?

I am trying to implement the actionbarcompat support library project in my android application and I have followed the guidelines here from the android website on how to implement these but the resources of the support library still are not available to my project.
Note: I am able to use methods defined from the compiled classes of the library project, I just don't know how to reference from the styles.
I am using eclipse IDE.
Anybody with an idea how or what I am doing wrong please assist me.
I happen to have found my own mistake! Most certainly I know a few others might go the same path.
These are the steps in adding a support library with resources.
Select File > Import.
Select Existing Android Code Into Workspace and click Next.
Browse to the SDK installation directory and then to the Support Library folder /extras/android/support/v7/appcompat/.
Click Finish to import the project. You should now see a new project titled android-support-v7-appcompat.
In the new library project, expand the libs/ folder, right-click each .jar file and select Build Path > add both the
android-support-v4.jar and android-support-v7-appcompat.jar files to
the build path.
6.Right-click the project and select Build Path > Configure Build Path.
7.In the Order and Export tab, check the .jar files you just added to the build path, so they are available to projects that depend on
this library project. The appcompat project requires you to export
both the android-support-v4.jar and android-support-v7-appcompat.jar
files. Uncheck Android Dependencies.
8.Click OK to complete the changes.
Now You add the library project to your application:
In the Project Explorer, right-click your project and select Properties.
In the Library pane, click Add.
here is where I went wrong. Check if you've done it the right way too (As shown)
Select the library project and click OK. The appcompat project should be listed as android-support-v7-appcompat.
In the properties window, click OK.
Look at the "Adding libraries with resources" section of this document
http://developer.android.com/tools/support-library/setup.html
Basically, you import the resources in a library project called "android-support-v7-appcompat" that you reference in your app project.

Android Studio Error "output path is not specified for modules"

I just recently upgraded to the newest version of Android Studio (0.1.1), but I also used Android Studio to relocate my project to my Dropbox folder. So, I'm not exactly sure which one is causing this problem. When I build or try to run my project I get this error:
Cannot start compilation: the output path is not specified for modules
"actionbarsherlock",
"EmPubLite-EmPubLite".
Specify the output path in Configure Project.
I can't find any reference to "Configure Project" and the Project Structure option under File no longer works in this release.
Solution for Android Studio version < 1.0 :
You just have to go to your Modules settings > Project and specify a "Project compiler output"
and make your modules inherit from project. (For that go to Modules > Paths > Inherit project.
Or you can specify your output for each module if you want.
In order to do so you just need to follow this steps:
Open Project structure (F4 on one of the modules in the project explorer)
Click on Project tab on the left
Define "Project compiler output:" as YOUR_PROJECT_PATH\out (or any folder you want)
Click on Modules tab on the left
Go over all your modules and verify that under the Paths tab the Compiler output is set to "Inherit project compile output path"
I ended up re-importing the project using Gradle and it's back to normal. Very weird issue.
this is a problem that I face in case I open my phonegap project with Android Studio and Webstorm.
They are IntelliJ-based project and I guess they are both writing the files in .idea
Reimporting the project is the solution.
got same error while using studio feature to import from GitHub repository.
I deleted the whole project and .. cloned it using git terminal and imported as new project ... studio prompted to add VCS root, accepted ....everything was fine afterwards. As #lordhong prompted.
I found this:
http://www.chrisdew.com/blog/2013/07/17/android-studio-nosuchmethoderror-lazystringarraylist/
it is realy help for me.
Thus, in my case, the problem was to have two libraries:
protobuf-2.4.1.jar
and new protobuf-2.5.0.jar
it resulted error:
APK path is not specified for module “Example-Example”
To correct this, rename file protobuf-2.4.1.jar to protobuf-2.4.1.jar.disabled
mv protobuf-2.4.1.jar protobuf-2.4.1.jar.disabled
How I finally managed to fix after hours!
File -> Project Structure -> Facets -> choose module's facet -> Packaging. Enter in APK Path absolute path to apk to be created: C:\workspace\MyCompany\MyProject\myProject.apk
Press ok and run your project

Categories

Resources