Unable to create application in AOSP - java

Actually, im trying to add a source code of app in the AOSP but when i do the "make" and launch the emulator, the app is there but it's crashing, in the logcat it says "unable to create application" securityException. Each and every mk file is correct but the app is crashing.

Initially, there were some updates for the branch, so I updated those. After that, I started the "make clobber" not "make clean" and then I did the "make". During the make, there were two options for config.txt file to choose(one is to update this file and other is to modify), here i did the update & again did the make. Now it's working fine.

Related

android studio wont install app with code android.os.Binder.execTransact(Binder.java:697

After a little of playing with java codes in android studio, suddenly it stopped installing apps on avd. I can have the apk output and install it on my phone(there I get the play protect error of unconfirmed developer ) as I disabled play protect on my avd. I have no idea what the problem is.
every time I try to do that android studio retries to uninstall the app from avd and the app is not on the apps list of avd device the error code is this:
Unknown failure (at android.os.Binder.execTransact(Binder.java:697))
I have done the solution on this post but it didn't help.
this post:https://stackoverflow.com/questions/44202530/error-unknown-failure-at-android-os-binder-exectransactbinder-java565-error
Edit
another error raised:
error pic
the problem was that with the ioutils that i was adding on dependencies some how made compatibility problem with the system cpu (the problem that i didn't have on my android phone)so next time it happens to any one first check your dependencies by going to:
File -> project structure -> dependencies tab
delete any unusually item there that did the trick for me
Note That it may make your app to act abnormally

my eclipse install another app instead of mine in emulator

I'm having a problem with my eclipse i have edited my app and it's ready with no error shows but now when i run it into my emulator it runs another app i have in my eclipse so i deleted the app and still i run the application i want in the eclipse and still it shows the old app that i didn't even ask to install it in my emulator so it's installing an app that i don't have at first place in my eclipse i don't know how it is possible i cleaned my project and still the problem is there and changed my emulator still its install the old app for me
uninstall the app from the emulator and check in your run configuration about the running app and try with new emulator
Be sure you have selected in package explorer the app you want to run. Try to unistall the app from the emulator or create a new device on emulator. Hope this help.
Check the Run configuration: Run->Run configuration. Under the Android tab, choose your project. If you run in Debug, you have similar option too.
Another similar case I saw, is that some application was installed, but the name was not updated. Verify the names of your application in both the strings.xml and the Manifest. (If you create a project by duplicating another one, it might be the problem).

uses-permission disappears when exporting app

I will start with, I'm an android NEWB. This is my first week with Android and although its been fun I think I'm going to stick with IOS development in the future.
But on to my issue:
My app is very simple. It goes to a PHP script, grabs some data and displays it to the user.
Its running fine in the emulator and on a device when ran/installed directly from eclipse. But if I export to an APK and install the app, it shows "Unable to resolve host MYURL: No address associated with hostname".
Its because the build is missing
in the manifest file. However I've put that string in the manifest file but every time I export the app to an APK the string disappears from the manifest file.
I've watched it happen in real time, I have the manifest file open in Eclipse, click "Export signed android application", go through the wizard and right when it builds the APK the permission line just disappears.
Has anybody seen this issue before?
I had the same problem. It would work fine during debugging but when I tried to export the app it wouldn't have permissions and they mysteriously disappeared from the manifest file.
It turns out I was updating the permissions in the MyProject/bin/AndroidManifet.xml not MyProject/AndroidManifet.xml

android dev with hardware device, test app dosent run

Went on a 2 week vacation, forgot something trivial I think.
Im using eclipse for android development on ubuntu. Steps Ive taken :
Ive got adb running, and the device is properly detected. I have done kill-server and start-server numerous times.
I do have unknown sources and USB debugging checked on the device.
I start a new project (file -> new -> android project) and create the most basic android app. I dont modify any of the code. Target = Android 2.2. API = 8.
I choose Run -> run (Ctrl F11). The phone screen does not change. I expected a 'hello world' type message (thats created by the default code). I check the app drawer (is that what were calling that place with all the apps?) It is not in there.
I project -> clean, and stop / restart the server and try again with the same results.
There is nothing in logcat and only a (ignorable?) problem "Attribute minSdkVersion (15) is higher than the project target API level (8) AndroidManifest.xml /test_july10 line 1 Android ADT Problem"
Please help me from getting more gray hair.
Open your Run Configurations (You can right click on project name). Choose the Target tab and select "Always prompt to pick device". Click Apply.
Now try to run your app again. It should bring up a dialog box of available devices. Does your device show. If so choose it and run.
Open DDMS tab (Eclipse Perspective). Make sure your device shows in the list of devices, select it and click the LogCat tab below. Observe any Log messages, or add some to your code.

"Could not find mopub-android-sdk.apk!"

I am attempting to incorporate mopub adverts into my game and get the error "Could not find mopub-android-sdk.apk!" reported in eclipse's console window when attempting to run the game. I am puzzled as to why it should be looking for an apk file at all - surely an apk file is a wrapped up program to execute (correct me if I'm wrong) - but I think mopub is supposed to be a library. Surely all the mopub functionality should be built into my single game apk, shouldn't it?
EDIT: The console output looks like this...
------------------------------
Android Launch!
adb is running normally.
Performing com.company.game.Splash activity launch
Automatic Target Mode: using device '0123456789ABCDEF'
Uploading Game.apk onto device '0123456789ABCDEF'
Installing Game.apk...
Success!
Could not find mopub-android-sdk.apk!
Starting activity com.company.game.Splash on device 0123456789ABCDEF
So it looks to me like its already installed my game.apk - why on earth would it then want to install mopub-android-sdk.apk?
EDIT: I just tried getting MoPub's sample demo working and that was fine. So now I'm suspecting its something I have set up incorrectly in my game project.
You might have an unnecessary reference to the MoPub project in the Java Build Path section of your project's Properties. See the answer posted here.
You should do just clean the project & build it again..

Categories

Resources