My problem is very commun here, there are many topics talks about it, i tried everything but it's not working, but i'm sure that it's not hard enough, maybe because my stupidity lol ...
My story start when i converted a APK File to Source Code, then i imported the source code to ECLIPSE, i did some changes like changing the app name..
But when i want to see the changes i did in Genymotion, it shows :
Unfortunatly my app has stopped...
here are the screenshots :
http://imgur.com/v7Zcx89
http://imgur.com/pD8JSPS
Thanks in Advance Guys :)
Related
If this is a stupid question because I made some terrible mistake, please let me know. Anyways, I just encountered the error and after searching on internet for quite some time, the only similar error that I could find was here But my situation was different.
1). I tried to create a new project from File menu of a previous project.
2). I clicked on Basic Activity and selected mininimum supported API to be 19.
3). I was following this tutorial by Google Developers.
4). I was previously able to successfully build and run from Empty Templates, but now, even they show this same error.
Here are two screenshots: Error & Window
I have tried to restart computer. I have NOT yet tried to download and re-install Android Studio yet. I do not know of any good troubleshooting besides restarting computer; so, if someone wants to share some tips, please be kind enough to do it.
I have not edited or tried to do anything in the automatically created project. I have not editted any file, until I noticed that even #color/primaryColor could not be resolved. So, I went on to look into the res/values/color file and found out that it had no color values in it, instead there was a single line: androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-au. So, I checked further, and found out that many of the automatically generated files had several errors in them.
I am on a Windows 10 machine. Please help, if this question needs to be edited, please let me know. Thanks a lot in advance.
Okay, let me first apologize by saying this is my first post on stackoverflow and haven't been coding that long so this may be a simple error on my part. Also let me thank you ahead of time for trying to help me. So this is basically what is ailing me, I have a app i have coded that is used to set wallpapers on android phones and recently have been submitted to blackberry's appworld.
I have never had any issue with the app until the other day when all of a sudden when i changed the package name to a new one. Note this is of a fresh install of the app. But for some reason the Blackberry Z10 is opening the app for about a second and shows me a black screen for less then a second and then close. However, my eclipse's logcat states otherwise and that it is still loading. Note that I have other apps using the same setup and library as this app and also have recently changed their package names and haven't run into this problem. Also this only happens on Blackberry Phones and doesnt give me this issue on any normal android phones.
Here is my logcat: http://pastebin.com/EzD6eQaU
If you have any idea why this is happening please let me know.
Thank you again,
Dalton
It took a while but i found out what was my issue. Blackberry has a package name character limit of at least 50 characters long. Any more then that and your app wont work on blackberry.
I searched around a lot before asking, on this website and others, I've found a lot of advice but I either can't fully understand it, or I'm implementing it wrong.
I build my .apk from Unity3D, and then I put that on Google Drive and using ASTRO File Manager on my Galaxy Tab 2 10.1 (GT-P5110) I launch it and install it, it says 'installing' for a short amount of time and then it just tells me 'App not installed'.
Most of what I've read is telling me that it wont work if it's an unsigned build, but to start with I was using the debug option in Unity's Publishing Settings, and now I've generated a new keystore, rebuilt it, got it back over on the device and the same thing is still happening.
Am I missing some critical concept or step here? I'm brand new to Android development and it's taken me a while to get to this stage, so if there's something I'm missing that is glaringly obvious then please help me out!
Thanks in anticipation!
SOLVED: Followed the instructions here, and it fixed my problem! Hope this helps someone else!
http://forum.unity3d.com/threads/210920-Failure-INSTALL_FAILED_CONTAINER_ERROR
The Solution in this is following:
Go to "Player Settings", click Android Tab
Under Other Settings/Configuation/Install Location, set to "Automatic".
UPDATE 2
I posted an answer that fixes my original problem. See that for more information.
UPDATE
FYI for anyone wondering, in the end I found this: http://github.com/commonsguy/zxingdemo/tree/master Exactly what I needed to get it rolling was a simple demo that worked! Also, thanks to Sean for pointing me in the right direction for my googling.
I am currently trying to build a simple android app that can scan in a barcode. I have looked through multiple tutorials, tried everything to a T, and re-tried and re-tried. Nothing worked. So now I am going to ask for assistance to see where I went wrong.
To list the tutorials I have followed:
https://github.com/phonegap/phonegap-plugins/tree/master/Android/BarcodeScanner
Tried this one first.
http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt3
http://simonmacdonald.blogspot.com/2011/12/installing-barcode-plugin-for-phonegap.html
Plus a couple others, but more or less hit the point to the same process. Some key points, when I add the LibraryProject to my project as a Library, the app will not compile until I create an AndroidManifest.xml I tried using the one found in the LibraryProject and tried creating a bare mininmal one, both would allow to compile, but the app ForceCloses.
When I load up the App and click "Scan" it ForceCloses and in the debug log of LogCat in Eclipse I get:
java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.myapp/com.google.zxing.client.android.CaptureActivity}: java.lang.ClassNotFoundException:
com.google.com.zxing.client.android.CaptureActivity in loader dalvik.system.PathClassLoader[/data/app/com.myapp-1.apk]
I have tried googling, found a few issues, but no real clear or solid answers, most just point to the tutorials above. I am not sure if the tutorials are just outdated or I am being stupid and am missing something key. Been working on this for a few days now and am at my wits end.
If you can help I would appreciate it. To avoid answers regarding if I have done X or X, here is what I have done.
When I test the application, I do briefly see it trying to load BarcodeScanner, but right after I see that it ForceCloses. I am not sure what I am missing, but for references I will post the code I currently have setup to test:
AndroidManifest.xml - http://pastebin.com/qq9q0ZU7
Plugins.xml - http://pastebin.com/dZ5eKPSU
index.html - http://pastebin.com/wvht4ken
If I need to post any other items let me know.
On Android, it is much much simpler than all this you're trying to do. Throw this out and restart from http://code.google.com/p/zxing/wiki/ScanningViaIntent
Ok, so for anyone having this problem, you have two choices. You can use the ScanningViaIntent, as Sean pointed out. It works great, if you need an example look at CommonsGuy. As for the tutorials I posted above to get this working with PhoneGap, my whole problem was, after I imported the LibraryProject I did not go back through and add the files. I am not sure if a setting in my Eclipse is bad. But I basically just right clicked on the LibraryProject, went to Import -> File Structure -> Library Project's original project path, and loaded all of it back in there.
There is probably something wrong with my Eclipse setup, but yea. I now have the BarcodeScanner plugin for PhoneGap working!
I am working on a game in eclipse. I connect my android phone to test my game application. Upon pressing "RUN" in eclipse, the game will begin to be uploaded to my device. However, it onl makes it half way then the console in eclipse gives me this error: INSTALL_FAILED_INSUFFICIENT_STORAGE. I checked my internal storage and I have 30mb left. My game is 3.20mb. I should have plenty of room. shouldn't I? Is this just a bug?
ps. This is very frustrating to me. I go to google developer forums and they tell me that if I am a neebie, to post on stackoverflow. I post on stackoverflow only to find they migrate me to SuperUser. Then SuperUser says, you were supposed to post on Android Enthusiast (beta), and migrate me there. Finally, I just looked, and someone posted that my question belongs on STACKOVERFLOW!!! Now I am back where I started. I am just trying to get some answers. Could someone please help me instead of migrating me please?
My application had a special german character in it,
like
"ö,ä,ü ... ß" .... (it was ö), prohibited adb to deploy the apk file no the device.
-> resulted in this error message...
so check your project name.
good luck!