I have a really weird problem, I created an Android project, it worked perfectly and deployed to my real device, but after deleting that project in my computer and then download it from tfs, it builds correctly and deploy to emulator, but in the emulator after some time running and self-closing it's gonna work, but when I deploy it to my real device, it says deploy succeeded but it doesn't really deployed! I don't know why! if I create a new project it work perfectly, this issue happens only when I retrieve my project from tfs!
I found it, I install a copy that previously kept on my device and then uninstall it, then the deployment gonna work perfectly.
Further if you want to uninstall it, uninstall it for all users.
Related
I have a very strange phenomenon with React-Native. I have been working with the iOS simulator mainly but wanted to test my code on my Android phone, a Huawei Nexus 6P. Even after removing the old app from the 6P an older version of my code is run. Yes, I have updated index.android.js to match index.ios.js and, to prove it should work, a Genymotion simulator of the 6P runs the correct code.
I even tested a Kotlin Android project I'm building and when I ran that on my 6P any updates to the code were shown as expected.
I will also mention, though it's probably not relevant, I recently (before this problem) had a separate issue that lead me to run sudo ./gradlew clean after CDing into the Android folder of my project as described in this answer. That didn't fix my issue but I wonder has it somehow 'corrupted' Gradle for my project? Is there a way I can 're-init' or something?
I'm really struggling to understand what could be wrong here, especially since the simulator is updated correctly. Any help is welcome!
UPDATE:
After a helpful tip to clear the cache of the app from bennygenel I did the following and reran react-native run-android but sadly I still have the same problem:
Cleared Cache for the App
Cleared the Data
Force Stopped the App
Uninstalled the App
This is very odd indeed!
I've been trying to solve this problem for about 5 days.
I've created an app for my work place in Android Studio, and it works fine when I run it in debug mode with the ADB. But when I generate the signed apk and try to install it on my device (Samsung Galaxy S6, Marshmallow 6.0.1) it always shows "Unfortunatelly, Package installer has stopped".
I have already changed the Build Variant to "release", and checked the password for the key store several times, also uninstalled the previous app and looked for remaining data like in other questions tell you to fix this problem. I think the problem is not there.
This code is in my build.grade :
Code Pic
I've tried the same with other apps I have created along with the Udacity Beginners Course (I'm kind of new in Android developing) and they work just fine when I create and install the signed .apk.
Also, I noticed that inside my phone there are folders of every app installed, inside Android -> data; here I can find the folders for the apps form the Beginners Course, but even if I run the one I'm developing with the ADB, the folder doesn't appear. Is this normal?
Hope someone can help me!
EDIT -
I think I found the problem with your help, but I still don't know how to fix it. This is what appears in the Android Monitor.
Android Monitor Picture
Thanks again for your help!
I know Android Studio is currently in beta, but still maybe somebody has a solution to this. Similar to Android studio running app on Samsung Galaxy S3 hangs at Uploading file I have issues when trying to run my app. It doesn't actually matter if its the physical phone or the android emulator.
I've tried with my app and a new empty project: same result. After compilation it tries to upload the app and just gets stuck. I've tried re-installation of Androidstudio and rebooting. Fun fact: on my laptop everything works just fine.
Any more ideas would be appreciated.
So actually it looks like something with the Platform tools was going wrong. A delete and install in the SDK Manager solved my issue. Weird, that the tools coming with the studio bundle are broken on my system.
Go to build and Rebuild your project. It will solve the problem.
I was having an issue with debugging my app with eclipse. When I go to debug on either a real device or on an emulator the process goes fine except on the console it gets stuck saying "app_name.apk installing....". There are no error messages and I even tried it with the standard hello world app. I've never had this issue before with my previous app, however I have updated the SDK since then. I have debuggable = true, and do have the block in the manifest which is a common problem. I also set up the real device for unknown sources and debugging. I didn't know if anybody else had this problem and fixed it ? Maybe its an issue the ADB?
Finally got it to work, uninstalled eclipse and the SDK and got the newest version from google. Previously eclipse wouldn't let me update the ADB and I'm assuming that's the root of the error. Works fine now and the new version of eclipse looks super classy.
Im new to android.
I have been writing my first app, I testing it about 2 weeks now.
Everything is went good, when today my apk doesnt want to be installed on my Phone.
So the followings happen:
I use eclipse.
I export the app with the right way:
Android Tools -> Export Signed Application -> bablabla I got a key and everything so..
The Emulator runs it perfectly, but when I try to install it on my phone, its icon not showing as an android application, its like 3 blank pages, so it shows as an "unknow" file format, and when i try to install, error message appears: "No applications can perform this action"
It seems like Eclipse didnt build my project as an .apk file.
Can somebody helps me?
What changed? Before this I could ran my apks on my Phone.
(Samsung Galaxy S, but I dont think its really matter, I guess it will be an Eclipse thingee)
Check out this documentation: debbuging android app on device
It looks rather like problem with manifest file, but I think You can run Your app by description from the link.