i have made an android application on my windows machine. Now i am trying to test the application on my Mac. Everytime i do this i enounter the following problem:
how i do it
i copy pasted my project onto my mac desktop.
i imported the project into my Eclipse.
My application uses internet connection.Hence i have added the necessary permissions in my android.manifest file for accessing internet. I have tried and tested my app on emulator on windows system many times. But now if i run the same on my mac, the emulator gives connection error (hostunresolved exception)
another problem
when i try and change the OS version of Android on my project: By default my app has Android 2.2, when i change it to 2.1, it gives a .classpath file not found error and my app starts to have many errors.
what could be the reasons for the above happening?
thank you in advance.
Eclipse will work fine in Mac...
May be their is no internet connection on simulator..thats y you getting that error
Check a url in ur browser....Also did you try clean the project after changing the OS version
Related
I am an intermediate Android Apps developer who uses java. Recently I tried to switch to Flutter and default app works fine debug on my cell phone through cable.
I just happened to look at Android Manifest and there are multiple error showing:
But to my surprise it shows no error on device.
I have set Flutter, dart and git path already. It would be nice if someone can help with theses errors.
This is normal since you are operating on a Flutter project, and not an Android one.
Try to Open the project from your-app-folder/android.
I created a basic Android app as an Internship. Created its APK and tried to run on my mobile by connecting it to the Laptop by USB cable and used as an emulator, it's working perfectly. My Android OS version is Oreo, I tried the same to do on Lollypop and still it's getting executed.
The problem arrives when I am sending that APK via e-mail and trying to directly install on the device, it's giving me this error
There was Problem in Parsing the Package
I don't know what is happening as it is getting executed directly from Android Studio.I kept minimum SDK as 15.
Please help me out.
Here is what you need to do before installing.
Android Unsigned App not able to install on device
And I hope answers here do the help too.
Cannot install signed apk to device manually, got error "App not installed"
Try this:
Build --> Clean Project
Build --> Rebuild Project
Build --> Build APK(s)
Apk Dir: Project Dir/app/build/outputs/apk/debug/xxx.apk
or check your app name length.
I've been working on a Xamarin project for a few days and have been testing it fine, but today it has suddenly stopped allowing me to debug the app, either via Live Player, or by connecting my smart phone via USB.
The only error I am getting, as far as I can see, is
Failed to debug your app
I've not got a way of testing it on iOS devices, but the built-in Windows Phone emulator runs the app fine, albeit with an error in my code popping up now and then.
What could be causing the Android version to stop debugging, or how do I at least fix it?
There are a couple of steps that can help with that issue:
Clean the solution and exit visual studio
manually delete the .vs folder in your solution directory
Delete the /obj and /bin folders in your shared code, and in each project for the platforms you are using
if you are developing for iOS, sometimes it helps to restart your mac
Start Visual Studio
Rebuild your shared code project
Rebuild every native project
Beyond that also make sure that you are using the latest versions of Visual Studio, Xamarin and Xamarin.Forms on all your computers, and that the nuGet Packages your project is using are at the very same version each in shared and native code
Also check, if your app isn't throwing an unexpected exception during its initialization. Especially if not caught, it can happen that your app crashes before your code gets executed at all.
In addition you may find further information about what is going on at Help -> Xamarin -> Open logs or in the device management in XCode (iOS only)
Try this :
Close visual studio if open.
Open App Data and then go to
(a) Local\Xamarin
(B) Local\Xamarin\Xamarin.Android
Empty these folders.
Open your project and then try to build your application.
Not a proper solution, but I uninstalled and reinstalled Visual Studio. This seems to have fixed the problem, but I've still no idea why it stopped working in the first place.
When trying to run the app on the device, I'm facing the following issue:
I the Event Log, there is the same message:
Where can I find more info about the error?
Might work if you Clean the project or rebuild the project and if you launching in emulator uninstall from the emulator or from mobile.
UPDATE:
i think there will be no more information about the error...
It's our common mistakes.
As per my knowledge about this issue there can be a few reasons for that:
First is that your app is already installed with the same package
name but with different certificate, To resolve this check if your
phone has that app already installed then uninstall it and try to
install new one.
The second reason can be that you are trying to install the
application that has minimum SDK version higher than the Android
version of device. To solve this make sure that the minimum SDK
version defined in your project's "build.gradle" is lower than the
Android version of your device.
Turning off the Instant run removed error for Android Studio 2.3.
sometimes project location contained the special character.
Example: E:\Android_Projects\T&PUIET,KUK\app\build\outputs\apk\app-debug.apk
close android studio > rename folder containing the special character(here T&PUIET,KUK ) > restart android studio.
Hope it will help!
I've tried to run a project from eclipse on samsung s device,
i got Installation error: INSTALL_FAILED_DEXOPT
But i tried to run on other device Samsung S4, its installed successfully.
i've tried the like mention on below thread
INSTALL_FAILED_DEXOPT error when trying to install application
i've uninstalled all app. and cleaned the project on eclipse. but still i got error.
I've reset my phone too. but still the problem i have.
Where is the exact problem. in phone ? or eclipse project?
I have faced same problem.
Please check your library folder if you are using any http client and http mime library, remove http client library.
Its working for me after removing that library on 2.3 devices.
For me it was Google's Guava library that created the problem, removed it from my \libs folder and it all worked out.