i get error "Mono.AndroidTools.AdbException: Permission Denied" while installing mono application from Visual Studio on devices that have android 4.1.x and upper version. in lower version i have no problem and app installed successfully
detail description: after first install, in visual studio i get below error too: "There is a shared runtime on the device whose version cannot be determined. A new runtime will not be deployed. If the runtime needs to be replaced, please manually remove it from the device. There is a platform support runtime on the device whose version cannot be determined. A new platform support runtime will not be deployed. If the platform support runtime needs to be replaced, please manually remove it from the device."
then after pressing ok,mono is installing on device,but i get Permission Denied error
error detail attached.
how can i fix it? thanks
From what I read here, it seems to be an issue with the fast deployment option. I turned it off by going to Project / Project Options / Android Build / Fast deployment and it worked fine after that.
Related
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!
All packages are not available for download!
The following packages are not available:
- Package id sources;android-24
Am trying getting data from database by using of web services, when am running the application getting an above shown error.
How can I resolve this issue in the android studio?
Open SDK Manager -> SDK Platform
Check on Show Package Details and Sources for Android ... then download
The popup error is not related to the exception you got on your application. Api 24 source code is not fully available. Hence you got the error. Change complieSdkVersion and targetSdkVersion to 23 and sync the gradle.
I just closed my IDE then restarted my computer. When I opened the IDE the error was no more.
Make sure you have good internet connection, as the error might be caused by a lack of internet connection preventing the IDE from reaching the site.
Check if the SDK version is installed on Android studio for that particular Android device. e.g. If Android Device has version 4.3 then check if SDK for this version 4.3 is installed, you can check it through Android Studio SDK manager. If not installed then install it complete.
Restart Android studio, reconnect the device, That's it
A thing I ran into, check to see if you have more than one android sdk on your box. I'm not sure if it was confusing Android studio or not, but I had one previously installed under Program Files. I ended up going into the AppData\Local\Android version used by Android studio and adding stuff I needed manually running the SDK manager as administrator.
This means that you can't reach the download site, and it has many reasons one of them is that you are in a country in wich the American laws won't allow to use such technology so you have to use a proxy program and to configure the sitting in your Android studio to use the proxy gate and port.
I'm trying to develop an app targeting the API 15. However every time I try to install the SDK platform in Android Studio, it stop before the end,showing connection timed out, and leave me with a partially installed SDK platform...
Trying it several times with the rights and a good internet connection gave the same result every time. I can still compile and (sometimes...) run my app using it but some bugs are there as well and since I'm pretty sure it's linked, I would lik to get the platform properly.
Thanks!
Using Android Studio version 2.3.3, to check which components of the SDK package for the platform were not installed properly:
Start the Android Studio "SDK Manager"
Under the "SDK Platforms" tab, select the check-box at the bottom that says "Show Package Details"
The SDK package will be expanded and show you the status ("Installed", "Not Installed", "Partially Installed") for each component of the package
This will enable you to install the components individually, and if they fail to install, debug what the issue is.
If you are in a country like China where Google is blocked or where you might have any problem with https, this fix the problem:
Check "Force https://... " (to force SDK Manager to use http instead of https)
For the rest the problem can come from the server as well.
I have a problem where by I get a permission denied error when trying to package my Titanium app for the Google Play Store. The following is outputted to the console in Titanium Studio:
[INFO] : Writing build manifest: /Users/[my_home_folder]/projects/titanium/[App name]/build/android/build-manifest.json
/Users/[my_home_folder]/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA/node_modules/wrench/lib/wrench.js:481
throw err;
^
Error: EACCES, permission denied '/Users/[my_home_folder]'
at fs.mkdirSync (fs.js:654:18)
at mkdirSyncRecursive (/Users/[my_home_folder]/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA/node_modules/wrench/lib/wrench.js:466:12)
at mkdirSyncRecursive (/Users/[my_home_folder]/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA/node_modules/wrench/lib/wrench.js:473:17)
at mkdirSyncRecursive (/Users/[my_home_folder]/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA/node_modules/wrench/lib/wrench.js:473:17)
at Object.mkdirSyncRecursive (/Users/[my_home_folder]/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA/node_modules/wrench/lib/wrench.js:473:17)
at cli.on.post (/Users/[my_home_folder]/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA/android/cli/hooks/package.js:32:40)
at /usr/local/lib/node_modules/titanium/lib/hook.js:235:13
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:551:21
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:227:13
at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:134:13)
I'm building for Ti SDK 3.2.3 because I'm experiencing audio glitches with more recent versions of the SDK. I can build fine for both Android and iOS emulators and have packaged the iOS copy of the app for iTunes Connect. Anyone have any idea what the problem might be? Running Ti Studio 3.4.1 and CLI version 3.4.1 on OS X 10.9.5
It was my fault, the distribution path for the build was set to a folder in my home directory however there was a typo in my home directory's name. Titanium Studio had a green tick next to the path not because it was valid but simply cuz it was non-empty.
I noticed it suddenly while looking at the logs and was quick to fix, Ti should really give a more informative error message; it wasn't a permissions error, the path didn't exist.
I upgraded to the latest android studio and as ever it breaks what was working fine before.
If I plug in my android device I can see debug in the debug monitor, it gets detected and i can select it as a device to deploy to, then I get
Waiting for device.
Target device: xxxxxxxxxxxx
and nothing else happens.. VERY frustrating. Anyone any ideas on how to resolve?
Here is the resolution:
The problem is the way i installed the newer version of Android Studio. Do not install it over your previous installation directory. Create a new directory and move over your SDK into it. This is how I resolved it.
The only error I was eventually able to get from Android Studio was if i tried to run a test I'd see
NoSuchMethodError: com.android.builder.model.AndroidArtifact.getOutputs()Ljava/util/Collection;: com.android.builder.model.AndroidArtifact.getOutputs()Ljava/util/Collection;
there has been some other posts referring to this issue. Just make sure you do a clean install and don't crap over your older version.
This issue on the AOSP bug tracker tells you what is going on. A quick fix is getting rid of builder-model-0.11.0.jar from plugins/android/lib in your Android Studio folder. A patch has already been submitted and this probably won't happen again with the next update.