It just happened right after upgrading to v2.2, where androids studio is showing the full package name of the project for each package I create!
Anyone has any idea how to hide the full package name and just showing the package name the I am creating?
This is because you have the Flatten Packages option active. To return to the default behavior you must turn this option off by going to your Project view at the left side (usually) and then on the click Show Option Menu Icon (a little cog on the top of this sidebar)
Image guide: http://imgur.com/a/sEFxm
EDIT: Sorry it seems I cannot yet post a comment to a reply ?
There is currently a bug issued here about the same problem fairly recent
https://code.google.com/p/android/issues/detail?id=222914
They suggest that the bug has to do with enabling dataBindings in your project and they already looking for a fix to this as we speak.
On the other hand if you do not have dataBindings enabled please try the following: Close AStudio, remove the .idea folder from your project, and then import your project again.
It has been Fixed in Android Studio V2.2.1.
Related
Similar questions have been found, but I cant even get past the module import.
Referring to this guide: https://developer.spotify.com/documentation/android/quick-start/kotlin/
The part headed "Add The App Remote SDK" screenshots dont match the current version of Android Studio, however there is an Import option in the Create New Module dialog.
I downloaded the sdk from github, and extracted into a folder...
F:\spotify-android-sdk-master\android-sdk-master
When selecting that path, the dialog lists 4 modules. app-remote-lib, app-remote-sample, auth-lib, and auth-sample.
HOWEVER ... I cant add any of them! I want to add app-remote-lib but Previous, Next, and Finish buttons are always disabled, only Cancel is available button.
Is this a bug or am I missing something?
I've tried changing the module names, and unticking all but app-remote-lib. Nothing sseems to work.
Thanks and regards,
Al
I have changed the package name from: com.android.co.smash
to: com.android.smash
but after changing the name is shows error:
com.android.co.smash/com.android.smash.views.activities.LoginActivity} does not exist.
it seems like the old name still exist, how can i solve this problem?
I've run into this problem when uninstalling the app and then trying to run it again from Android Studio. There seems to be some kind of bug where it thinks there is already a version of your app installed. Very weird. On your device, if you go into Settings > Apps & notifications > Your app, (If you have deleted the app) you will see all the options greyed out. In the top right corner click the 3 dots for the more options menu, then click Uninstall for all users. This will remove whatever remnants of your app are left on the device. Then you should be able to run it from Android Studio again without any issues.
As you might know, Remove Unused Resourceshas added recently to Android Studio, Android Studio 2.0 Preview 5.
I run this function by right click on the name of project then Refactor/Remove Unused Resources. It shows a dialog and nothing happens when I click Refactor or Preview buttons. I believe there must be a lot of problems since this is a very big project but I don't see result. Are you able to see any result?
Okay, I just found what is the problem.
The problem was, as I mentioned I was right clicking on project name and did refactoring from there. So this way doesn't work (Android Studio guys must disable this functionality to not staffing people around)
So, By running Analyze/inspect code I could see a list of unused resources. I doubled clicked on an String item then String.xml opened and by doing refactoring/remove unused resources... all resources removed :+1
So it was the trick. I could see all changed files on git. Hope it helps you guys.
I know that there are two post like this one in Stackoverflow (this and this) but I already tried what is described there without any result and I have the feeling that I'm running out of options.
This screenshot is from one of these two posts, but is exactly what I also see.
In my case, I was never able to make the googlemaps work and I tried to import and copy the stuff in so many different ways that I guess is what lead to the actual situation. In my last attempt, I was going to try to follow the steps described in this post, which seems to be the most accurate one, but as I said, now I just can't import the google-play-services_lib because keeps telling me that is in use.
I made sure that I deleted the project from my workspace and any other place where it could be stored by searching for it.
Does anyone have an idea that is not described in the other two posts? Creating a new workspace and importing my project and then the google-play-services_lib could be a solution or the problem is of another nature? Is there a way of obtaining more information about the error shown by Eclipse in order to fix it?
project name already exist on workspace most of time may be named as mainactivity (or other name) try to rename change existing project name and after try to import it!
e.g following steps
first screen shot shows your same error
after click select all button shows actual error explains below screen shot:
note this screenshot error message is Cannot import MainActivity because the project name is in use after shows project name rename on existing workspace on your eclipse after try again import it will work perfectly!
google-playservices.lib is in use by another Project.
Check following
close the project who is using it with right click close
remove the reference from the project who is using it.
I you don't have the library project in your eclipse works space and you still receive this message, you can just close eclipse, go to you workspace folder and manually delete the google-play-service library from there. then open eclipse and try to add the project again.
I'm sure there are better ways to do it, but I ended up creating a new workspace, importing my project and then importing the google-play-services_lib.
I had a project named "xxx" which I renamed to "yyy". The project works fine on my phone. But Eclipse still says "Launching xxx" when I run the app. How do I remedy the situation? I've tried searching for "xxx" throughout my project, no luck.
I also had this problem on my Android project. Now I found the solution:
Click the down arrow next to the run button.
Select the Run Configurations item in the popup menu.
Expand Android Application and select the item with old project name.
Set the Name: field at right to the new project name.
Click Apply
Hope this can fix your problem.
Go to the launch configurations and have a look at the configuration that´s called xxx.
In the Name field you can edit the name of the launch configuration to whatever you want.
EDIT:
Maybe this documentation article makes it much more clearer:
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fviews%2Fdebug%2Fref-editlaunchconfig.htm