Error when trying to Debug Android app - android

Please help.!! I'm getting the error posted in the image when i try to debug my app, it was working fine and now i cant find the problem.. Any suggestion??
The app stucks in waiting for device for debugging. but it works fine if i run the app in release mode..
My app is developed in Android Studio latest version and using Api 19.
How do i clean my project? i've already tried this:
gradlew clean
gradlew compile
Please somebody help!!

There's none of your source code attached so i can't tell for sure but it could be because you're trying to write data to the root of internal storage. If that's the case you just need to change where you're writing your data.
Source : Android Error - Open Failed ENOENT
I wouldn't know for sure though since i can't see your code.

Related

See logs when AndroidStudio is stuck on Gradle: Build

How to understand what and why really happens behind Gradle: Build? There is no console or crashes, just endless building. Maybe there is network issue which happens again and again, but how can developer know it?
This is a sample of just new project:
From terminal everything works fine. So the question is not about how to solve particular problem, but more about generic solution when IDE doesn't show anything except "progress".
You can execute ./gradlew build manually in the terminal to see its logs. You can also add --debug or --stacktraceparameter to enable verbose logging.
I have a similar answer to Andre, but with a suggestion of some potential culprits.
If an issue is happening, Android Studio is just a GUI wrapper on the terminal. So just run the commands and see what the hold up or error is.
However, Often times when I see freezing up that takes a long time to fail it is network related items. Such as an internal Maven repo that is not resolving properly. So check your internal Maven repos as well that they exist and you set them up correctly.
You can also turn off the internet and start it up, it will load into offline mode and not attempt to load any internet items and offers popup to move to offline mode in gradle. This will give you a chance to make your corrections until Android Studio improves these issues.
Rather than Choosing Start a New Android Project, Open an Existing Project and then
goto file>>new >>new Project
If You create android project by following these steps , You can see every error of you gradle build in
logcat

Android sendBroadcastAsUser() UserHandle.USER_CURRENT error

I am rebuilding an Android app for which I've the source code from the OEM. Normally, the app can be using the make command in command line and that works. The app's UI, manifest etc. is done in Eclipse. But Eclipse can't compile the app, and gives error on the line shown below and does't recognize the item USER_CURRENT.
sendBroadcastAsUser(exampleIntent, new UserHandle(UserHandle.USER_CURRENT));
Does anyone know how can I build and run the app from Eclipse?
Btw, I build my own system image for the platform using Android 4.4.2.
Thanks.
I used
android.os.Process.myUserHandle()
to get UserHandle instance.

INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES error in PhoneGap

I have made a PhoneGap/Cordova based application, that seems to work fine when tested with Chrome + Ripple.
When I'm trying to install it to my Android device(which is ADB configured, and shows up in Eclipse SDK), I get the INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES error.
By reading existing posts on the same issue, I understand that it has to deal with re-installation of the app.
But, this is the first time I am trying to run this app on any device, and I don't see how re-installing might solve the problem.
Any advice on resolving the error would be much appreciated.
Look for another app in settings->apps->downloaded that may have the same package name and uninstall it.

Can't run android app from eclipse

Hi eclipse is giving me the following problem all of a sudden and i can't execute my app.
This is the screen shot of the error.
I have did the following things.
Clean>build.
Restart eclipse
But the problem is not going and i have not changed any thing in eclipse only worked on the php file as my app accesses mysql db.
Please help as i am due to submit a project today.
This is my error log.
error log
Try creating new emulator and set it as your target device from run configurations of your application. Try running your application from there.

Cannot load the app in titanium android emulator

I am having this problem while running my application in emulator.When I run application it shows in console this error:
[ERROR]Error reading data file
and then nothing happens.Don't know what can be the issue, tried it many ways deleting all virtual AVDs and cleaning up the project again and again but not working anyway any solution for that? I am using 2.1.1 titanium SDK and android V8 (2.2).
sometime this also show this error in console:
[ERROR]No building apps, No launcher activity.
Did the application run before?
Have you tried a clean build or deleting the build directory to perform a full rebuild? You can also have a look into the logcat provided by DDMS to search helpful information.

Categories

Resources