sdk

Android ADT plugin problems

匿名 (未验证) 提交于 2019-12-03 08:44:33
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I got this problem when I am trying to do the ADT plugin step and need some helps. The error is as follow: Cannot complete the install because of a conflicting dependency. Software being installed: Android Development Tools 15.0.1.v201111031820-219398 (com.android.ide.eclipse.adt.feature.group 15.0.1.v201111031820-219398) Software currently installed: Eclipse SDK 3.7.1.M20110909-1335 (org.eclipse.sdk.ide 3.7.1.M20110909-1335) Only one of the following can be installed at once: International Components for Unicode for Java (ICU4J) 4.4.2

Android sdk will not install - crashes when checking for jdk

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have downloaded the java jdk, and the android sdk installer, but when I run the android sdk installer, it works fine until the screen where it checks for the java jdk. It starts to not respond, then after about 15 seconds, a crash message pops up. Any help with this issue? 回答1: it may be a bit late, no solution on the internet worked for me and finally out of desperation I deleted the registery key: HKEY_LOCAL_MACHINE\Software\JavaSoft (not in Wow6432Node) And it worked! I hope I just saved someone from looking for a solution for two hours

Emulator not starting after updating to Android Studio

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have updated android studio to 3.0 through standard update channel. After update am not able to start the emulator. I have tried the following. But nothing worked. Restart and reinstall HAXM installer. Restart and reinstall AVD manager. Start emulator from terminal. Change the size of RAM to 2GB. Graphics to Software GLES 2.0 PFB the logs. At 4:Run Error while waiting for device: The emulator process for AVD Nexus_5X_API_25 was killed. AT Gradle Console: 27/10/17 8:42 PM Gradle sync started 8:42 PM Project setup started 8:42 PM Gradle sync

Failed to set up SDK: Error:Module 'app': platform 'Google Inc.:Google APIs:21' not found

匿名 (未验证) 提交于 2019-12-03 08:39:56
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Failed to set up SDK: Error:Module 'app': platform 'Google Inc.:Google APIs:21' not found. At a complete loss as to why this isn't working. Attempted to update my SDK to 23 but realized I wasn't prepared to deal with all the new deprecations, etc., so I reverted to an older version on Mercurial. I've done literally nothing else, and the reversion should have solved everything. Unfortunately, I'm stuck unable to connect my app and build it. I've even reinstalled Android Studio from scratch, but I continue to receive the same warning and my

failed to resolve com.google.firebase:firebase-core:10.0.1

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to use Firebase Cloud Messaging in my Android App. This is my app level gradle file apply plugin: 'com.android.application' android { signingConfigs { config { keyAlias 'androiddebugkey' keyPassword 'android' } config1 { keyPassword 'android' } } compileSdkVersion 23 buildToolsVersion "23.0.3" packagingOptions { exclude 'main/AndroidManifest.xml' } defaultConfig { applicationId "com.shikhar.dexter.project" minSdkVersion 19 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles

Zipalign - Command not found - MAC terminal

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I try to run Zipalign on an apk I get the error "Command not found" I am not that familiar with using terminal commands on the MAC but I have navigated to the SDK/Tools folder and run the following command: zipalign -v 4 Project1.apk Project1-aligned.apk I get Command not found I have tried placing the apks in the Tools folder and same result. Can someone help me to understand where the apks should be located and where I should run zipalign from? Thanks, I am very frustrated about this as it seems so simple. 回答1: Perhaps the current

Android Studio could not find any version that matches com.android.support:appcompat-v7:23.+

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: New to Android Studio. After setting everything up I tried to run a basic project and keep getting this error. I changed my appcompat version to 7.22.+ and it builds. Can anyone explain this? I know I'm supposed to download that version but from where? Thank you! Error:A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find any version that matches com.android.support:appcompat-v7:23.+. Versions that do not match: 22.2.1 22.2.0 22.1.0 22.0.0 21.0.3 + 7 more

Facebook like and Twitter tweet buttons causing Cross Domain Issues

会有一股神秘感。 提交于 2019-12-03 08:35:49
问题 I am using both the twitter tweet button, and the facebook like button <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://example.com" data-text="some text" data-count="horizontal" data-via="someone">Tweet </a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <fb:like class="fbShare" href="http://example.com" font="" send="true" layout="button_count" show

Could not find a suitable SDK to target

匿名 (未验证) 提交于 2019-12-03 08:35:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I try to create a project for UWP but I get this error: 回答1: I install windows development kit and it worked. Thanks 回答2: Part of the problem can be solved by choosing an older sdk. Choose the second newest from here: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive 回答3: Installing the latest SDK didn't help me either. The installer wouldn't complete, kept getting to 97% and then rolling back. I had a whole load of MDMERGE errors like: MDMERGE : error MDM2009: Duplicate type Windows.Networking.NetworkOperators

Error Handling on Java SDK for REST API service

纵饮孤独 提交于 2019-12-03 08:31:09
问题 We are building a Java SDK to simplify the access to one of our services that provide a REST API. This SDK is to be used by 3rd-party developers. I am struggling to find the best pattern to implement the error handling in the SDK that better fits the Java language. Let's say we have the rest endpoint: GET /photos/{photoId} . This may return the following HTTP status codes: 401 : The user is not authenticated 403 : The user does not have permission to access this photo 404 : There's no photo