I have a lot of projects and all of them stop work today gives me errors on all code , the error is default activity not found !
Someone know how to fix it?
When I had a similar problem this helped:
File -> Invalidate Caches / Restart
and then select
Invalidate and Restart
Is it possible your androidmanifest.xml changed somehow? You need a launcher activity defined in your manifest for the app to know which activity it needs to launch.
Also, if you need help it is best to post at least some of your code as it helps us identify the problem
Related
I recently renamed my App Center organization and since then all builds are failing immediately with no error messages.
I can't open the logs either (I tried multiple apps).
Any clues?
I had the same issue reproducing after changing the name of the application in AppCenter. What magically solved my issue was to enter the configure build screen and click save&build. Worth mentioning that I did not change the configuration I previously had. I reckon this is not a technical answer, but it solved my problem, since I didn't know where to start debugging the issue.
I just started learning about Android development, so this one is a serious issue for me: I launch Android Studio (2.2.2, but had the issue since 2.2.1) on Win10, make a New project, just keep clicking Next without changing anything (selecting Empty Activity as the template), Finish, try to Run 'app' on my phone and consistently get this error:
Error while executing: am start -n "com.example.android.myapplication/com.example.android.myapplication.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.android.myapplication/.MainActivity }
Error type 3
Error: Activity class {com.example.android.myapplication/com.example.android.myapplication.MainActivity} does not exist.
Error while Launching activity
Being a complete newbie who was just supposed to change some text in XML and run the app on a phone, I have no idea what to do or edit to make a pregenerated app actually work. I searched StackOverflow for a more general approach to these errors and tried:
Restarting AS/computer
Disabling InstantRun
Messing with Clean/Rebuild/Synchronize/Sync with Gradle
Deleting .gradle and .idea folders and Syncing with Gradle
Some other obscure shenanigans with build.gradle and AndroidManifest
Various combinations of the above.
... None of which worked (or affected the problem in any way, in fact).
Other observations:
The app isn't even installed (checked All apps, there isn't any com.example.android.myapplication or MyApplication app on my device)
On the development course forum, it was suggested that com.example.android.myapplication/com.example.android.myapplication.MainActivity should only read com.example.android.myapplication/MainActivity. So far I haven't been able to figure out how to change that.
Update 1 New attempted fixes (neither of which worked):
Specified activity directy in Run/Debug window.
Specified no activity whatsoever (doesn't show that error, but doesn't run anything either).
Did File/Invalidate Caches
Changed android.intent.category.MAIN to all-lowercase and back.
Added "category android:name="android.intent.category.DEFAULT"/" to Manifest
Update 2 Managed to run the app on emulator. It seems to be working there, so the error will likely be somewhere between AS and the phone (Android 5.1.1, API 22).
Developer options and USB debugging are on (confirmed the pop-up message, too)
Driver is up to date (AS can see the phone without problem)
Phone is on (and not asleep) while I'm trying to run the app
Any suggestions why the phone won't download and run the app?
In your manifest file edit
with android:name="com.example.android.myapplication.MainActivity"
Make sure that your code doesn't mean any nonsense and that it wouldn't cause the app to crash, which is sometimes the problem. Try finding a problem in code which could crash the app. Maybe in your crash log you can find what causes the crash. Good luck fixing that.
According with your error log I suppose you did not delete previously installed app. See my accepted answer on the same question for details.
every time I try to publish my web app to azure it gets stuck, how can I determine what the problem is? logs etc, I cant see anything but the output but thats not enough to diagnose the issue.
So the way I got around this issue was to set the visual studio parallel build settings to 1.
this would force visual studio to build each individual project one after the other, and this way you would be able to diagnose if there is something going wrong during the build stage or not.
fortunately for me nothing was wrong with the build stage and my project got published fine.
Same thing I have faced many times, process stuck while publishing Web app.This is related to network speed. May be at that time your network speed is slow. Please make sure while your will going to publish your network speed should be high.
This is work for me.
Recently I've been having problems with AnkhSVN. When I want to commit, the window "Committing..." comes up and normally it then asks to authenticate, but it doesn't do that anymore, it doesn't do anything anymore. I've waited for an hour but still nothing happens and I receive no error, it just doesn't do anything.
I've found no solutions online, so I hope anyone of you has encountered the same problem and can help me out. I don't know how to check which version I'm using and how to update it. I am using Visual Studio 2008.
Any help would be appreciated.
I already tried the following and it didn't help:
- restart Visual Studio
- restart pc
- clear authentication cache
Update: problem is not only AnkhSVN, the same problem occurs with TortoiseSVN...
I managed to fix the problem with the help of a colleague. I wish I could give a clear explanation but unfortunately the problem remains strange to me. We had to create a new network adapter and pass that to the Virtual Machine to fix it. I assume a corrupt network adapter :s
I am trying to execute a console application which updates creation dates on specified items in sharepoint lists.
When I try to execute I get this error:
There has been blocked for additions to the site. Contact system administrator to solve the problem.
I then went to the Central Administration to check if Quotas and Locks was set to Not Locked. Then afterwards running the stsadm commando
stsadm -o getsitelock -url http://mysite
Which returned SiteLock Lock="none", so those 2 matched.
I have debugged the console application and made it console.writeline each step it takes and it gets to the item.update(); part and that's when I get the above message.
Do you guys know another way around to solve this issue?
Have you gone through all solutions provided here ?
or
check the document library settings and found out that doc. library was set NOT to require check out although versioning was enabled. just try to set to require check out
i dont know this is the right solution but i have faced the same problem and i did restart my machine and the problem is resolved.
hope this trick work for you.
Check if your database read-only.