Why won't Android Studio create a class?
It doesn't even work for newly created projects
Update
OR why are all of these empty?
The reason is you may have installed the 64 bit version on a 32 bit machine. I had the same problem. If you have 32-bit OS, try to uninstall 64-bit version of Android Studio and install 32-bit version from this page: https://developer.android.com/studio/index.html#downloads
I too faced the same Issue. Go to your Android Studio -> Help -> Edit Custom VM options. Add the following line to the opened file.
-Djdk.util.zip.ensureTrailingSlash=false
Source : Fix suggested by Wojciech Fred
To me, the problem was due to incorrect upgrade to new version of Android Studio. Studio patching seemingly went ok, but at Event Log, I constantly got this error:
2:55 PM FileNotFoundException: Entry fileTemplates//code/Google Test Fixture SetUp Method.cc.ft not found in /home/vlada/android-studio-145.3200535/lib/idea.jar
I also got similar message in 'IDE Fatal Errors' window.
Downloading and installing the latest version of Studio solved the problem for me.
Related
I am unable to debug a Xamarin.iOS application out of JetBrains Rider 2022.2.2. This is the error that gets thrown when trying to deploy to the simulator:
error HE0004: Could not load the framework 'DVTITunesSoftwareServiceFoundation' (path: /Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/DVTITunesSoftwareServiceFoundation):
dlopen(/Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/DVTITunesSoftwareServiceFoundation, 0x0001): Library not loaded: '#rpath/ContentDelivery.framework/Versions/A/ContentDelivery'
Referenced from: '/Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/Versions/A/DVTITunesSoftwareServiceFoundation'
Reason: tried: '/usr/lib/swift/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/Library/Frameworks/Xamarin.iOS.framework/Versions/15.12.0.2/lib/mlaunch/mlaunch.app/Contents/MacOS/../Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/Versions/A/Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/usr/lib/swift/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/Library/Frameworks/Xamarin.iOS.framework/Versions/15.12.0.2/lib/mlaunch/mlaunch.app/Contents/MacOS/../Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/Versions/A/Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file), '/System/Library/Frameworks/ContentDelivery.framework/Versions/A/ContentDelivery' (no such file)
I had the same problem.
Let me guess... You just upgraded to XCode14 and the corresponding Command Line Tools?
Downgrading XCode and Command Line Tools to 13.4.1 helped me.
What worked for me
Go To https://developer.apple.com/download/all/?q=command%20line%20tools
Download XCode and Command Line Tools for Xcode 13.4. Unpack Xcode (13.4.1) and rename it (for example Xcode 13) and place it parallel to Xcode (14) in the programfolder.
.
Then install the Command Line Tool.
Now in Xcode (still 14) > Preferences > Location > Command Line Tools, select version 13.4.1 instead of 14. You can see the Path for it is "Application/Xcode 13".
For safety restart tools, and it worked again...
Update: With the last update of Visual Studio, the downgrade was no longer necessary for me. Since then I can build the apps with XCode 14 and the corresponding command line tools without any problems. So I suggest upgrading Visual Studio to the latest version first.
Here is how I made it work:
Download the former version here (note: you need a developer account)
Double-click on the downloaded .xip file to install XCode 13.4.1
Rename the newly installed XCode application into Xcode.13.4.1.app and move it into your Applications folder
Open the usual XCode application and go to the preferences
In the locations tab you will be able to select XCode 13.4.1 for Command Line Tools
Redownload Visual Studio?
It turns out Microsoft released a brand new Visual Studio at some point.
We haven't been in our Xamarin project for a while and even though it said there were no updates, no Simulators were showing up.
Our Visual Studio said the version was 8.10.25 yet when I was reading the release notes, they referred to version 17.3.7.
Our team had to download Visual Studio again and then we saw the version updated to 17.3.7.
So check your version of Visual Studio and redownload the newest one. That's what fixed this issue for us.
Latest update fixed the issue for me.
I had the same issue, while searching for answer I found this thread,
writing this to confirm that I took the latest update on 9th nov(NET 7 SDK). Issue seems resolved with latest update.
There is a more elegant solution to this problem. You need to upgrade Xamarin.iOS manually. The releases are on GitHub 16.0.0.72 did the trick for me.
Getting this error in android studio 3.5
Android Version 3.5
SDK 28
flutter latest version
Any one help me with this error? Getting this in windows 7 ultimate
Failed to extract manifest from APK: Exit code -1073741515 from: C:\Users\Shahryar Ahmed\AppData\Local\Android\sdk\build-tools\29.0.2\aapt dump xmltree C:\Users\Shahryar Ahmed\AndroidStudioProjects\flutter_app\build\app\outputs\apk\app.apk AndroidManifest.xml.
No application found for TargetPlatform.android_arm.
Is your project missing an android\app\src\main\AndroidManifest.xml?
Consider running "flutter create ." to create one.
Try to do a
flutter clean
This solved lots of problems for me
From Menu Goto Tools->Flutter->Flutter Clean.
as shown in below picture.
File->Invalidate Caches/Restart..
I encountered the same problem and I fixed it by deleting the app.apk in the build/app/ouputs/apk directory and it worked.
This problem happened to me .
and the error was that the file aapt.exe in this ( C:\Users\username\AppData\Local\Android\sdk\build-tools\29.0.2\aapt.exe) is opened by antivirus .
the solution is : stop the antivirus and run again it will work .
also :
you can double click on aapt.exe file , if it opened by another program it will show what is this program , so you can stop or close this program and run again .
Consider opening as administrator your android studio .exe
I went through the same problem. I just uninstalled previous build in my emulator and did flutter run again... worked for me.
After this answer:
https://stackoverflow.com/a/68142732/14409491
I uninstalled the antivirus
Then I deleted all folders in the build-tools in C:\Users\user\AppData\Local\Android\Sdk\build-tools
After that, downloaded build-tools again from android studio
I was also facing this issue while using VS Code, then I tried running on Android Studio because sometimes issues are related to emulator.
Though running flutter clean on the terminal from the project
directly seemed to solve my problem. after that also get(pub get) your dependencies to avoid further build errors.
I have recently installed Tizen Studio 3.3 (web-ide_Tizen_Studio_3.3_windows-64.exe) and also install all necessary packages through Package Manager. After the process of installation had finished, I tried to launch Device Manager and Emulator Manager, but failed because of the system Error: "The code execution cannot proceed because MSVCP120.dll was not found. Reinstalling the program may fix this problem".
However, this file exists in the folder C:\Windows\system32 and all versions of Microsoft Visual C++ Redistributable Versions are installed.
Please, help me to overcome this issue. Thank you in advance.
Overall, I have found out how to deal with this problem.
First of all, I had to totally reinstall Microsoft Visual C++ 2013 Redistributable. Thanks 'magicandre1981' for this kind of hint. It helps me to get rid of this kind of error:
https://sun9-65.userapi.com/c854124/v854124694/1151cf/ZnvZokiCCoM.jpg
As for unsuccessful launching of Device Manager, where nothing happens after it has been clicked, I overcome this problem by changing the path from 'C:\Program Files\Java\openjdk-13_windows-x64_bin\jdk-13\bin' to 'C:\Program Files\Java\jdk1.8.0_221\bin' in Environment Variables.
You need to install Visual C++ Redistributable Packages for Visual Studio 2013 (x86)
https://www.microsoft.com/en-us/download/details.aspx?id=40784
Reinstall the vcredist_x86.exe even if you have 64-bit system. This solution also fix Tizen Studio 4.6 Device Manager.
The solution is to update Visual C++ Redistributable Packages for
Visual Studio. You can do it by the link
"microsoft.com/en-GB/download/details.aspx?id=40784". Recomendation:
install vcredist_x86.exe even if you have 64-bit system. This will fix
the problem.
Moreover, check if you have no spaces in folder name, where you are
installing SDK. The installation can be complited successfully, but
you will catch errors like "can't resolve path", because of spaces.
Thats confusing.
Reference: https://developer.tizen.org/forums/sdk-ide/missing-msvcr120.dll-v3.1-emulator
According to my experience, device manager and emulator manager was not working on open jdk11, 12, 13.
I have tried for several days and contacted with samsung developer support.
They asked me to install oracle jdk8, I did.
Now it is working well.
Hope it help to somebody who having such an issue.
i'm quite new to the android world and have recently encountered an issue. While trying to launch an apk i found online, i stumble across an error message i do not fully understand. it mentions that i'm running a 32 bit executable. I have already checked that the JDK installed is 64 bit and that i have studio 64 installed and not studio. Also, i'm pretty sure i have set the environment variables correctly. So if any of you guys could answer my query, it'd be great thank you !
Probably your Android Studio is not x86_64? Try to download and install the 64 bit (android-studio-ide-173.4819257-windows.exe) from https://developer.android.com/studio/#downloads , instead of 32-bit version.
Recently updated Build: 2.3.1, AI-162.3871768, 20170401,
AI-162.3871768, JRE 1.8.0_112-release-b06x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.11.6 unknown, screens 1440x900; Retina
Switching back to Android 2.2.2 did not help either. Successfully able to build from command Line though(MacOX Terminal)
Delete your $HOME/.gradle directory (or on Windows, %HOME%\.gradle folder). The next execution of gradle will rebuild this. (It will require some downloads, so make sure you have an internet connection).
You can try just deleting $HOME/.gradle/caches, but this will not solve the problem in all cases.
I have similar issue on 2.3.1
I tried using the Android 2.4 Preview 4 but that did not help. I am able to build from command line too.
Android-Studio-2.3.1-Gradle-Sync
It happens when Android Studio creates two instances of gradle. I tried clearing the gradle cache or even deleting the .gradle but did not help. All this problem started when I deleted my old project repo and re-pulled it and imported to my Android Studio.
Best is to delete all your gradle instance from your home directly before your re-import your project Android Studio.
Android Studio started behaving like this after I tried building with the command line(osx) using ./gradlew
What helps is running the studio with sudo:
sudo /Applications/Android\ Studio.app/Contents/MacOS/studio
I wonder if theres a fix to this problem that allows the studio to be started normally as well.