Android studio Cant find exploded-aar directory in project files - android

I cant find any folder name in my project with the name of exploded-aar .
i putted the view in project mode and still cant find it , in creative cloud SDK (Image Editor) we must to go in this directory :
/app/build/intermediates/exploded-aar/com.adobe.creativesdk/image/#.#.#/res/values/values.xml
but i cant find that!
in another words i want to customize Creative cloud SDK (image editor) strings but i cant find them, if anyone has the strings files in exploded-aar for just send that for me :)
thanks.

In the androidstudio 2.3 version
Google official make one more cache file replace exploded-aar
if you use it
you can open gradle.properties add
android.enableBuildCache=false
rebuild you project and clean it.
and you will find that you've found the file again

Related

How come I can't see different folders other than Java folders in Android Studio

I just downloaded AndroidStudio. It is my 1st day of using it.
I imported my project files that I used to open in Eclipse. And when I expand the file structure, I can't see the manifest files or my other folders.
Would anyone know how to fix this?
Thank you!
And when I expand the file structure
That's not the file structure. You'll probably be more comfortable if you switch the "Android" drop-down above the "file structure" tree to "Project". This will give you more of an Eclipse-style, "this is what's on the filesystem" view of your project.

SDK Location not found in android studio

I have just imported my eclipse project in android studio. it keeps my saying that
Error:SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
I have seen some tutorials of editing local.properties files but it didnt work. here is my project.properties file:
sdk.dir=E:\\Mod Eclipse\\adt-bundle-windows-x86_64-20130219\\sdk
Actual directory of my folder is :
E:\Mod Eclipse\adt-bundle-windows-x86_64-20130219\sdk
A quick note about this if trying to run a Facebook sample and this error pops up, make sure you select the build.gradle file in the root of Facebook sdk, for all the samples when 'opening an existing project'. I got this error when I tried to open the gradle for just the Scrumptious sample from the 3.22 SDK
If you are sure that you have assigned correct SDK path in project settings,
and you can see it in local.properties as well, but still getting this error then there are chances that you are missing something in you project.
I was getting the same error after looking in to my project I found settings.gradle was missing.
and then add following script to your apps build.gradle
You will not face this error any more. It worked for me may be gradle set up was the blocking issue
My problem was:
I cloned a project from github
I clicked open existing Android Studio project
I chose the path of the inner sample app instead of the containing folder.
So what you should do is:
close the project.
click open existing Android Studio project
select the parent folder instead of the sample app.
You should also change it on Project Structure.
Close the current project and you'll see pop up with dialog which will then proceed to Configure option.
Configure -> Project Defaults -> Project Structure -> SDKs on left column -> Android SDK Home Path -> give the exact path as you did on local.properties and select Valid Target.
There you go.
The simplest solution sometimes is just do the File -> Invalidate Cache / Restart.
If it does not help then go for the more complicated stuff, as suggested in other answers
You can add a local.properties with to set the sdk.dir like sdk.dir=/Users/roofe/Library/Android/sdk.
But please note below, which is very important,
add the local.properties to the uppermost path of the project. Here the uppermost have some difference with root path of a project.
For example in the below project, I just use the ijkplayer-example, but this module also used other module with different cpu architecture.
If I only add local.properties to ijkplayer-example will not work. Here will get sdk location issue for other module.
While I can add the local.properties to the ijkplayer directory, then when I try to open the ijkplayer-example project, there will auto create a local.properties for ijkplayer-example, and everything works well.
In my case, it was a fresh install with checkout from github.
Just close the checkout window.
Create a new project (not from git, just a fresh one).
exit the project.
checkout whatever you like
Its just the fastest way that I found.
So I had the same issue, and none of the answers given previously helped me. What I did was check for new API updates (in my case, I updated to API level 23) and the problem was fixed.
Sync project with Gradle files, It will modify the project's local.properties file.
In Android Studio, I just clicked on File and then Choose Project Structure or Ctrl-Alt-Shift+S. This'll clearly show you the Android SDK location and an input box where you can browse to the correct one if it is not correct.
I add just local.properties file where my project is located. In local.properties:
sdk.dir=C\:\\Users\\dglig\\AppData\\Local\\Android\\Sdk
such kind of path is there which is our Sdk path.
So just create local.properties file manually and inside this just copy the Sdk file location.
Probably local.properties file missing.
Copy a local.properties from an existing file and add it to your current project. That worked for me.
I installed the SDK again (from here for example :
https://www.mediafire.com/file/azbsqg6dmg7z7np/Sdk+tools+for+android+studio.rar/file
& it created the directory & the packages, after installation.
Now I open android studio & everything is normal.
Everything posted so far was helpful in an overall learning capacity. However, most of the time, fixing one problem created others. What ended up working for me was completely deleting the GitHub project .zip file and any unzipped files. Then I made sure the correct .zip file was re-downloaded and unzipped. When it came time to open it in Android studio, I noticed there were 2 folders with identical project file names, one being contained in the other. The first (or upper) one is actually the .zip file. Open the other one!

android: Project.Properties - do not edit, your changes will be erased?

I seem to have an issue.
I wanted to add some additional config info into project.properties in an android project but i notice when i open it there are comments telling me not to edit it
Is it safe to edit
Would it get regenerated at some point so i would lose my changes?
Is there an alternative?
EDIT
Somebody suggested looking here https://developer.android.com/tools/projects/index.html
which states
project.properties This file contains project settings, such as the
build target. This file is integral to the project, so maintain it in
a source revision control system. To edit project properties in
Eclipse, right-click the project folder and select Properties.
but i found no reference at all about editing properties in eclipse
Any ideas?
it seems google thinks you should be able to do it
Please see this info. The project.properties file should be edited using eclipse. Select project -> properties -> Android.
You can Go on to Save the content of the project.properties as it is somewhere on your PC and go on to play with it as you Like.
If you find problem after Editing it,You can Always go on to re-place it with the Saved file and clean the project once.
It will always fix your problem.

Android: Unable to include facebook sdk library project

I am working with Android API 17 on eclipse Indigo. I have cloned the faccebook sdk from github and done the facebook library project set up using the source project provided in the fb sdk.
Now I'm trying to include this library project in my android demo project. I have added it under Project properties->Android->Library section. Im seeing green color tick mark infront of the added library.
Also, i have added the same in the Project properties->Java build path->Projects.
build is successful. but when i try to install on my AVD, im getting the error, E/AndroidRuntime(748): java.lang.NoClassDefFoundError: com.facebook.android.Facebook
Can anybody plz help me how to fix this issue.
---- EDIT ------
One more thing I have observed is, when i opened Project properties->Android window, the green tick mark is not displaying under Library section, instead I'm seeing red cross mark.
Any ideas?
Thanks,
Venkat Papana
Same thing happen for me also.. try below .. it will work..
A Best way to add External Jars to your Android Project or any Java project is:
Create a folder called libs into you project root folder
Copy your Jar files to the libs folder
Now right click on the Jar file and then select Build Path > Add to Build Path, this will create a folder called Refrenced Library into you project, and your are done
By do doing like this, whenever you transfer you project to other Computer, you will not miss your libraries which are being referenced to some space on your Hard drive.
(The facebooksdk.jar can be found at the facebook-sdk directory: <facebook-sdk>\facebook\bin)
i know this question is old But I thought that may be it can help someone.
Move the library project and the application on the same drive. Usually this is a bug in Eclipse.
I solved my problem by moving them in same drive on my computer.
You can Give it a try.
You need to make both project in same dictionary then include it using Project Properties -> Android-> Library.
This works fine.
You do not have to add this to the library project as this is not the library.
https://github.com/facebook/facebook-android-sdk is the help of the project ad the sample code for the including the project in our code. Just you need to create the app ID for the facebook by registering your api with it.
Hope this will help you in your project.
Resolved by copying the com.facebook.android source code to my project source.

Intellij Android project schema URI not registered?

I'm using intellij CE 10.5 for my android projects and ran into a weird error.
My project can be built by Eclipse and Ant, and also compiles under intellij. However, all the xml and manifest files are showing:
xmlns:android="http://schemas.android.com/apk/res/android URI not registered in Settings | IDE Settings | Resources.
I tried ignore and manually create this but it didn't work out.
Anyone ran into similar issue? I didn't have problem w/ android SDK 2.x but this is a honeycomb 3.0 project, so just wondering if that matters.
thanks
I accidently opened the layout xml file which is in out folder (has output files for compile), not in res folder. Check that you opened the layout xml file in resource folder. The file names are identical.
Be sure your project is configured like android facet otherwise it will not work.
=> Project Structure : Project settings : Facets : add (+ button) android facet
This way fixed my problem.
For me the problem was having a duplicate of my main module in the project structure. I removed the duplicate using the "-" button in the same dialog, and the problem got fixed.
If IntelliJ IDEA cannot find the specified DTD or schema, they are
marked as errors. In this case special intention actions are suggested
to:
Resolve the reference, if it is represented as a URL. Map a URI to a
local file. Permanently ignore it. An ignored URI will not be
highlighted as an error any more, until removed from the ignore list.
Add Xsi schema location for external resources. A special attribute is
added to point namespace location. Configure schema for your XML file.
The schema for your XML file can be configured based on detecting
schemas located locally in project sources or libraries.
From here--> http://goo.gl/heQCv

Categories

Resources