Cannot access 'androidx.lifecycle.LifecycleOwner - classpath

what should I do for handle this error?
I have done it before and it work
now I create new project and faced this error
how can I solve this?

Try some suggest, in Android Studio
Go to:
File
Select invalidate caches
click just restart
Explained in this
Link

Related

"Unable to create project" error in Unity hub 3.1.2

I've been having some issues with Unity so I installed the latest hub but now I can't create any new projects and I don't know what to do. Does anyone know how I can solve this?
Here is what happens when I try to create a new project
Check the version on the top, this happened to me when I uninstalled the editor and installed a previous version. There's a drop down menu where you can select the correct editor version.
This is a path issue. All paths should be select.
enter image description here
In macos it is for permissions, I solved it by following these two tutorials
Enable root user
https://www.maketecheasier.com/enable-root-user-mac/
Execute Unity Hub as root user
https://es.wikihow.com/abrir-aplicaciones-con-privilegios-de-ra%C3%ADz-en-una-Mac#:~:text=Es%20posible%20abrir%20cualquier%20aplicaci%C3%B3n,a%20la%20aplicaci%C3%B3n%20o%20computadora.
When the editor is installed in a non-C drive, the editor has no right to create objects in any path
Unistall Unity Editor and install it in C:*
https://forum.unity.com/threads/if-unity-hub-didnt-be-installed-in-c-you-cannot-create-project.1375554/
report bug

Entrypoint is not a Dart file in flutter

i have been reading more than 10 similiar question for this error and still cant solve my problem
im trying delete .idea and still cant solve it,trying add content root in my project too, but the problem isn`t solved, can you help me?, thanks
Apart from the warning 'Entrypoint is not a dart file' my main.dart was also showing the code in just one plain color (white) with no intellisense whatsoever.
After deleting .ideal/ folder and dart_tools, uninstalling/re-instaling android studio, and other attempts, there was no luck and no solution on google addressing this very error message so i decided to try this:
After saving my work
Go To File in Android Studio Menu at the top
Manage IDE Settings
Restore Default Settings
It will redownload android sdk and setup everything as new.
Paste your codes from previous projects and ride on!

Getting cmd: Failure calling service activity: Failed transaction (2147483646) when trying to debug on emulator

Started getting this error all of a sudden for my Flutter project
Clearing cache did not help.
Rebooting did not help
What fixed it for me is closing the emulator and cold-booting it.
I was having the same issue. Here's what worked for me:
Navigate to AVD folders in file explorer (for me it was ursnm/.android./avd)
Select and delete all files in here,
From Android Studio, go to AVD Manager (should be empty now) and create a new device.
I am very novice, so I have no idea why this worked, but it did for me.
-Brian

Intellisense in IntelliJ no longer working

I'm currently running IntelliJ IDEA 13.1. While running IntelliJ 13 intellisense/autocomplete stopped working. I tried upgrading and it still doesn't work.
I can explicitly invoke code completion using ctrl+space. I looked in Settings->Editor->Code Completion and nothing looks out of place. Is there somewhere else that turns this feature on/off?
For me it was because I did not have a folder marked as Source Root (it appears in blue).
To fix, right click your root source directory -> Mark As -> Source Root.
Check to see if you accidentally turned on Power Save (File/Power Save Mode) I myself just discovered that File/Power Save Mode does turn it off. I was having the same problem and must have accidentally set Power Save Mode to on.
I'm using Mac and when I upgraded to Big Sur my intellisense stopped working.
This is due Big Sur has a shortcut for Input Source. By disabling Mac shortcut, will make Intellisense work again.
You can see the option to disable in mac:
File -> Settings-> Editor-> General -> Code Completion-> Auto pop up code Completion
If other options mentioned is already true for you,try Setting up Sources/Test folder as Sources Root/Test Sources root as it did the trick for me. I had forgot it.
Right click on folder, choose "Mark Directory as" Test Sources or Sources Root, or whatever applicable. :)
Try disabling all plugins you have. I installed Codota and it turns out to be garbage. I uninstalled it and disabled the plugin in IntelliJ and it worked
Had the same problem and none of these helped. What I realized was that on mac, control + space is used by the OS to change language inputs and it overrides intellij. So if you are on mac having multiple input languages on your keyboard, consider changing the shortcut for it :)
I tried all the above option and it did not solve the issue. In my case:
THE ISSUE: node_modules was not loaded in the file structure of the project.
THE SOLUTION: go to explorer(finder/nautilus) find the .idea folder in the project and delete it. Then re-import the project. Once I re imported the project it loaded the node_modules folder as library root
Note: It will take a few seconds for IntelliJ to index all the libraries. You will see a loader on the bottom right next to line number info.
In my case, I restarted the Intellij and everything came back to normal.
Had the same problem until:
Third party JDK installed
Configured in module settings: right click on project name, then "Open module settings" -> SDKs -> "+". Pick the jdk root folder and Idea will take care of the rest.
Re-indexed a bunch of things. It happens automatically, just be patient
For me, it was I hadn't yet set up the JDK.
Type something out, Ctrl+Space to try to autocomplete. If it fails, do Alt+Space and if the option comes up to setup JDK, do that.
In IntelliJ 2017-2 to configure Autocompletion:
Settings -> Editor -> General -> Code Completion
In case this helps anyone; for me it was a windowing glitch of some kind. The suggestions popup showed on the wrong monitor, which I didn't notice the first time it happened.. after a while I saw what was happening. Resizing the window seemed to fix it.
If you're too lazy to restart your machine to fix the issue, you can kill the process taskkill /F /PID pid_number_of_idea64.exe (task manager -- view>select columns>PID) and then open CMD, head over to C:\Program Files\JetBrains\IntelliJ IDEA xxxx.xx.xx\bin, start idea.bat. Let this CMD window open.
Please note that even after executing taskkill, idea64.exe process doesn't disappear from task manager. Try executing the same command again and you'd know that process doesn't exist anymore.
For me the code completion suddenly stopped working because I had nudged the IDEA window slightly off-screen, maybe just a pixel or two, which caused the code completion pop-up to (presumably) appear off-screen. Making sure the application window was fully visible fixed the problem.
In case none of these work for you, if you are using IdeaVim, make sure your ~/.ideavimrc does not override Ctrl+Space, you can check this in vim:
:verbose map <c-space>
In my case, it was set by ~/.vim_runtime:
Last set from ~/.vim_runtime/vimrcs/basic.vim line 208
Thanks #s1n7ax for the tip!
IMPORTANT
If you had your email logged-in on IntelliJ Idea for a while and its token expire the Intellij will suddenly stop working or crash(My Version 2020.1.1).
Do two things.
1. file > sync settings with JetBrains account (log in here)
enter code here.
2. file > Invalidate cache / restart
I'm using Maven project, it works by:
File > Project Structure > Modules > Sources
and then marked java files dir as Sources.
reference link.
Spent hours to fix this problem too. For me, the answer was to disable a plugin.
Which one to disable? Just find out using trial and error since all kinds of plugins can cause errors...
It depends which product, for Intellij I might have to right click and import the .iml file from the root, or in Rider right click the solution file and open that. I'm only making this mistake 4 or 10 more times, and then it is never happening again.

Metro App cannot open package.appxmanifest

I have this Metro App project that I just tried building for the Windows Store.
After completing the buildprocess (with no errors) I can't open the appxmanifest xml file in visual studio anymore. If I select "STORE" > "Edit App Manifest" I get the following error message: "Value does not fall within the expected range."
I can't open any manifest file in any project now.
Does anybody know whats happening, do I need to reinstall Visual Studio or whats going on?
I'm pretty desperate, so any suggestions are welcome.
Found the answer here http://forums.asp.net/t/1836720.aspx/ - so i tried deleting the .suo files from the project, and now it seems to work. I have no clue why that would affect newly created/other/checked out projects, weird behavior indeed?
(Since I am both new to SO and to Visual Studio, I don't know if answering my own question is considered bad practice, if it is, please let me know what I should do instead)
It's an XML file, so you could try to open it with a text editor to figure out if there's an invalid value set somewhere. You could always compare to a default Package.appxmanifest from a new project.
Can your fellow coworker open the manifesting file you're having trouble with?
The first thing to check is to make sure you are running Visual Studio as an admin. (Right click, run as administrator)
Try creating a completely new project. Save it without modifications. Build it. See if you can open the manifesting file in that project. If you can't, try a XAML/C# project instead of JS just to see if something is wrong with the specific project type.
And before you try completely reinstalling, you might try resetting your Visual Studio settings. Make sure to take a backup just in case you need to get your environment back to where it was once you find the issue.
http://msdn.microsoft.com/en-us/library/ms247075.aspx