I had no problems installing the "android bundle kit" (eclipse + ADT) on Slackware64 14.0.
However, a lot of weird errors appeared with the project, and when trying to run after a lot of suffering, I receive a "Segmentation fault".
I thought that was an installation failure on my "multilib" and I reinstalled it, again.
"Segmentation fault" persisted when trying to run adb.
So, I remembered I have a functional skype installed in my linux.
Then, I changed all files on "/usr/lib" using the ones on skype directory.
Believe or not, now my android tools are working (fine!)
This is not a great solution, but I was desperate and this saved me.
What is the proper solution to this problem?
Then, I changed all files on "/usr/lib" using the ones on skype directory.
A segfault is just a crash. You should have looked at the stacktrace to figure out exactly what library was at fault and tried updating that library (or searching the internet for help) rather than clobbering everything with your "skykpe libraries"
Given your approach, I suspect you have done more damage to your system than you realize.
Related
For the past week, I have been struggling to figure out how to run a Qt quick application with the Android kit. I have encountered numerous errors. Earlier, my OpenSSL settings on Android where not working, but I was able to fix it by downloading new OpenSSL files from online. After that, all the settings in Android settings have a checkmark to signify that they are working.
After that, I tried to run the program with the Android kit. However, unlike for you in the videos, Qt Creator did not auto detect an Android kit. In fact, I have uninstalled and reinstalled Qt numerous times to see if it would detect an Android kit. However, since this still did not work, I manually created my own kit. Here is a screenshot of what I filled out for it:
However, as you can see on the Qt version section, "Qt 5.15.0 for Android" is considered invalid. I have installed previous versions and the current version of Android numerous times on the Qt maintenance tool but all of them show as invalid. As a result, I changed the Qt version to "5.15.0 MinGW 32-bit".
When I tried to run the program, I got an error about not finding the gradle scripts. After researching, I found that since my Android SDK is past version 26.0.0, it is not downloaded with the SDK but should have been downloaded when I installed Qt. Since it clearly was not, and downgraded my version of Android SDK tools to one with the gradle scripts. There is still a green checkmark after it, so it was the correct SDK.
When I tried to run again, my Qt Creator crashes (meaning my laptop exits from Qt Creator immediately). As a result, I only try to build it. When I built it, I get the error that "Android deploy settings file not found, not building an APK. ". I tried researching the problem on the Qt forums and stack overflow but I could not find a valid solution. I continued to experiment more to get to the bottom of my problem.
Additionally, even before I run or do anything, when I start Qt, I get the following errors in general messages:
There are only 3 errors which seem to be repeated every couple of minutes. I have no idea what the some of the errors mean, but for the first one, I created a Android_NDK_ROOT environment variable, in the build settings for the project, Qt environment settings(tools->External->Configure->Environment->External Tools->Update Translations), and my Windows Environment variable settings and wrote "ANDROID_NDK_ROOT = ANDROID_NDK_ROOT=C:\Users\arjun\AppData\Local\Android\Sdk\ndk\21.3.6528147". However, even after all if this, my program still gave the same errors. Additionally, I could not figure out what the other two errors meant and choose to ignore them.
After this, I completely deleted my Qt Creator, and all the things I downloaded along with Qt. I then downloaded Qt. It basically did not change anything, except when I run it, I get a completely different error.
Here is the current state of errors and settings my Qt is in:
My Kits:
My Qt versions:
My manually created android kit:
Current compile output error:
Current Android settings:
Current general messages:
These are some file errors I have been getting randomly on Qt, usually when I try to run something. For the most part, I have been ignoring them and but they might be relevant to my problem. These come back to back, usually more at a time:
Issues I get when building:
In conclusion, my Qt is being difficult and I cannot seem to figure out how to run Android. I have followed all your instructions on the video as well as a lot more but I still cannot figure it out. Can you please help me fix the problem so that I can run Qt Applications on virtual android devices?
Thank You so much for your time and effort!
I was usually running my application, however was not getting access in the emulator due to the network proxy, I made some changes in the emulator network to gain access, however now when I run the application I'm having the following error:
I have tried clearing the cordova cache several times however not decided.
Also I tried to delete the specific way, however also not decided, what should I do with this error.
Sorry to hear about your trouble. There are a couple of things that could be causing this. One possibility is that you need the 64-bit JDK because you are running into issues. However, it looks like you're more likely missing a dependency.
Can you try running the dependency checker and verify that you're not missing anything? Go to tools -> options -> Tools for Apache Cordova -> Run Dependency Checker and install anything that it says you're missing.
I updated the android sdk today - since then I have had the following problems
stopped exporting apk ( but doesn't tell me why)
can't run emulator (message on console says it cannot find *.apk)
I tried reloading project, after getting message that id did not exist (even though it was there)
managed to get eclipse to recognise project, but now it rejects the switch/case statement on my options menu
All this worked yesterday - and I have looked at most of the solutions put forward on other posts - and none seem to work.
currently I am on android sdk tools 23.05 and eclipse Luna 4.4.1 (running on Linux as that may be a factor)
Has anyone any idea how to solve this - any suggestions greatly appreciated.
I managed to get things to work, although I was now getting an error related to case statements in libraries. I checked the properties, and the project was not set as a library so I couldn't understand this.
I then tried the one thing I should have done first - what I would have done thirty years ago when first in IT - I completely rebooted the whole system.
Now eclipse showed the project as being a library, so I was able to reset that and everything now seems to work.
I can only assume the update yesterday messed up some of the memory, and the eclipse lost its bearings.
I recently completed my first, very basic Android application however when debugging and testing I encountered what seems to be a very common problem. Eclipse and the emulator were giving me a similar problem to this emulator.exe has stop working?, and then after trying the recommended solutions I started receiving errors similar to this Android Emulator won't run application started from eclipse and receiving errors in Eclipse saying this:
adb is running normally.
Performing 'activity' activity launch
Automatic Target Mode: Preferred AVD 'TestAVD' is not available. Launching new emulator.
Launching a new emulator with Virtual Device 'TestAVD'
emulator: warning: opening audio input failed
None of the solutions I found worked unfortunately. Worked as in I was able to run my application in an emulator at all. So I decided to uninstall and reinstall the Android SDK. I followed the instructions in both a Beginning Android Programming book and the ones provided on the official Android website but to no avail. From the last time I downloaded the SDK, the Android SDK Manager is newly updated although appears to install correctly with no new errors. Also reinstalling the ADT in Eclipse seems to go smoothly. However I've noticed that when I now go to recreate a new Android project, it creates it differently to what the website and my book describes. The most prominent difference being that in my drawable folder, there is only an "ic_launcher.png" as opposed to having three folders for ldpi, mdpi abd hdpi. The AndroidManifest.xml also does not recognise android:targetSdkVersion or android:installLocation anymore saying there is no resource identified found. Another major problem is in my MultiTouchHandler class, MotionEvent variables such as ACTION_MASK or ACTION_POINT_ID_SHIFT for example, have the error cannot be resolved or is not a field. Before I uninstalled everything, these things worked perfectly and the application encountered no errors. The app worked!! Upon reinstalling everything, and moving my application into a new project to fix the initial problem, nothing works anymore.
I have googled and searched these forums for a good few days and all the solutions that have been suggested have not worked for me. I have uninstalled and reinstalled and redownloaded the SDK's I don't know how many times and I really don't want to give up on developing for the Android.. but I just can't seem to find a solution. Sorry for the lengthy post but I wanted to be thorough! Any help would be very much appreciated! Thank you!
The following situation will surely be familiar to any Android developer using Eclipse and ADT.
I'm tired of this endless cycle of switching Build Automatically on and off, running Clean, building and running. I'm constantly doing all of these operations when I'm fine tuning UI (i.e., editing XML files and needing to see the results live), and any time I save, an Eclipse window telling me I have these pending operations shows up. When that happens, I turn off Build Automatically. I do my alterations and then run. Sometimes Eclipse decides the changes in the XML file weren't enough, and it won't reinstall the app in the emulator or device, so I force a build and install.
All of this is just wasted time. I've already done an AppleScript to build & run my app into all the emulators and devices I have connected at once, described in this SO question, but my workflow could be much improved if I found a way to save and build silently and fast.
Does anyone have any tips or alternatives?
IntelliJIdea Community Edition now supports Android
Have you tried the bundle for Textmate? It's pretty cool. It's basic but its got all the features you need. Building, Deployment and integration with AVD and Logcat.
I use this for all my Android Dev now as I found Eclipse painfully slow.