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
Related
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.
I have installed Android Studio today. I'm a newbie to Android development. I know that it has been asked several times, but my Android Studio is most updated as of now, so none of the solution seems to work. [AndroidStudio v3.6]
After the installation got over, I attempted to create an Empty Project. It opened the whole project as seen below,
After waiting for 7+ minutes (bottom-left), gradle is still not downloaded, and the activity_main.xml file keeps showing "Loading".
Solution 1 - Change the gradle location
I found this location to C:\Users\RAHUL.LAPTOP-DISIIAS2\.gradle\wrapper\dists\gradle-5.6.4-all\ankdp27end7byghfw1q2sw75f, but it contains two files - one is gradle-5.6.4-all.zip.part and other is gradle-5.6.4-all.zip.lck file.
Solution 2 - Invalidate and restart
Doesn't seem to work
Solution 3 - Change gradle settings to work in offline mode
The version I'm using doesn't have the option
How can I fix it?
Here is my gradle-wrapper.properties file:
First, check if you are connected to http\://services.gradle.org/distributions with ping command in Command Prompt. If you are connected, then change Proxy Settings in Android Studio to Use System Proxy. If it is downloading slowly again, your internet connection may be slow. Or you best fallow guidelines in this link : Gradle Download: Installing Manually
Then work in offline mode will appear in your settings.
So, I've made a game using Libgdx in eclipse for android/desktop. The strange thing is that when I export it to a desktop app, it doesn't exports my assets into the JAR(I should put them manually for it to work properly). When I try running my app on android (AVD's and my phone) it uploads the app, but then stops(Unfortunately the game stopped).
http://imgur.com/a/6x8a3 You can see my project structure here.
I've double checked if the "Extract required libraries...." is enabled and if the assets folder is set as a working directory. I also got the latest version of Gradle installed and tested in cmd.
The weird things is that if I save and send my project to a friend of mine, he can export it to desktop and it exports all of the assets and he also can run it on his tablet and AVD - so i thing the problem is not from the code, but from the eclipse/gradle settings.
Any ideas how to fix this problem?
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).
when I run my android development project (with eclipse) at the time when the android device chooser loads, it shows my running emulator and the device followed by a red cross as indicated in the following screenshot.
But when I select the device and run, it installs it and run properly.
In the manifest file I have included the followings.
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="15" />
Just to test I created another new test app project and while creating the new project I selected minSdkVersion and targetSdkVersion with the same values. So in the manifest file both are same.
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="15" />
But the thing is when I run the new test app, it shows the device and the running emulator in proper way with a green tick as follows. Also it shows the device list available under "Launch a new Android Virtual Device" section. Bit confused with this and trying to sort out this. Have anyone experienced this before. Appreciate any help to get this done. Thanks inadvance..!!!
Try these in the same order and update the result:
Run adb kill-server and adb start-server and see if that fixes it.
Let Eclipse run your emulator instead of running it manually.
Recreate your AVD with older versions of the SDK and see if it works.
try to restart eclipse, sometimes eclipse has problems with loading the correct libs directory
check the project.properties file which target is config, it should be
android-15`
also try fix project properties from android menu