Can not fetch Android SDK with Android Studio RC4 on Ubuntu - android-studio

I'm trying to start Android Studio RC4 on a freshly installed Ubuntu.
I'm under a proxy so I have set my proxy in Ubuntu System Settings.
Yet, I'm getting this when starting Android Studio:
[ 6987] WARN - ateSettings.impl.UpdateChecker - Connection failed. Please check your network connection and try again.
and the process seems to hang up at "Fetching Android SDK".
I've tried export http_proxy=... to no avail

Create or modify file:
~/.AndroidStudio/config/options/other.xml
or
~/.AndroidStudioBeta/config/options/other.xml
depending on Android Studio version.
Fill in:
<?xml version="1.0" encoding="UTF-8"?>
<application>
<component name="HttpConfigurable">
<option name="USE_HTTP_PROXY" value="true" />
<option name="PROXY_HOST" value="127.0.0.1" />
<option name="PROXY_PORT" value="3128" />
</component>
</application>
Replace 127.0.0.1 and 3128 with you http proxy settings.

I took a different approach to this problem. After editing the other.xml file there was no real results. My terminal still had [ 5154] WARN - ateSettings.impl.UpdateChecker - Connection failed. Please check your network connection and try again.
The next approach for me was locating the idea.properties file within android-studio > bin and adding
disable.android.first.run=true
to the last line of the file. This will disable first run and the associated hang.
Then I went to the android studio File > Settings > HTTP Proxy settings and made changes to the proxy settings. After which the line added earlier to the idea.properties file was deleted.
Hope this helps :)

I had the same problem and solved it by adding my proxy settings into the following file '.AndroidStudio/config/options/other.xml'

Related

Resource compilation failed

I work with Android Studio 3.2 and I've done a firebase connection to get connected to the part of the register with the app I'm building.
Here's screenshots of where I'm seeing the error: https://imgur.com/a/GN72eL8 & https://imgur.com/a/kwxA2sH
Android resource compilation failed
Output: C:\Users\ERIK\AndroidStudioProjects\FirebaseAuthDemo\app\src\main\res\mipmap-anydpi-v26\ic_launcher.xml:12: error: not well-formed (invalid token).
Command: C:\Users\ERIK\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\92d92d266c9089a895db65475d7e7f04\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy \
-o \
C:\Users\ERIK\AndroidStudioProjects\FirebaseAuthDemo\app\build\intermediates\res\merged\debug \
C:\Users\ERIK\AndroidStudioProjects\FirebaseAuthDemo\app\src\main\res\mipmap-anydpi-v26\ic_launcher.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #1
Your /res/mipmap-anydpi-v26/ic_launcher.xml file is incorrect, on line 12. This is often caused by an incorrect character being there, e.g. a semicolon or full stop.
You can delete this file if you want a quick fix, otherwise open up the file see what the compiler has highlighted as the issue on line 12. If you can't work out what's wrong, edit your question with the file's contents and any additional errors.
Yes i see the correct your answer but i send your code here for see you who is problem
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AndroidLayouts">
<shared>
<config />
</shared>
</component>
<component name="CMakeSettings">
<configurations>
<configuration
CONFIG_NAME="Deb
PROFILE_NAME="Debug
#JakeSteam

Android Gradle sync failed issue Android Studio 3.1.4 & gradle 4.4

Gradle sync ended up with the following errors
org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.4/gradle-3.1.4.pom'.
at org.gradle.internal.resource.transport.http.HttpClientHelper.performRequest(HttpClientHelper.java:96)
AND
org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.1.4/gradle-3.1.4.pom'.
Kindly help
The problem is with my proxy server,I got the proxy details through this
chrome://net-internals/#proxy
and putting these lines inside gradle.properties file solved my problem
systemProp.http.proxyHost= hostname or IP
systemProp.http.proxyPort=
systemProp.http.proxyUser=username
systemProp.http.proxyPassword=password
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
systemProp.https.proxyHost=hostname or IP
systemProp.https.proxyPort=
systemProp.https.proxyUser=username
systemProp.https.proxyPassword=password
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost '

Web Deploy package throws ERROR_SITE_DOES_NOT_EXIST when deployed

After creating a WDP from an aspnet solution, the [project name].deploy.cmd file returns this error when executed:
Error Code: ERROR_SITE_DOES_NOT_EXIST
More Information: Site 'freedomstoreusa.azurewebsites.net' does not exist. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_SITE_DOES_NOT_EXIST.
Error count: 1.
My objective is to deploy the package to this site as if it were publishing to azure from visual studio 2017. What is causing this issue, what can resolve it and what are some alternatives to packaging and deploying a website?
Here are my settings in the package wizard:
what can resolve it and what are some alternatives to packaging and deploying a website?
I build and package the web application project, and use MSDeploy.exe to deploy the web application, which works fine on my side.
Command:
TestSite.SetParameters.xml
<?xml version="1.0" encoding="utf-8"?>
<parameters>
<setParameter name="IIS Web Application Name" value="{app name}" />
</parameters>
I came here with the same problem but the image in the question and the answer from Fei Han solve my problem I was creating a File System Package not a Web Deploy Package which will create App.SetParameters.xml and the App.zip in the selected folder it also will ask for the app name an then you can use that auto generated file for the param -setParamFile:

Server Error in '/ccnet' Application

My CCTray says build is broken and on the server(http://172.25.165.10/ccnet/)
I get this error
Server Error in '/ccnet' Application.
Configuration Error
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<!-- This is your CruiseControl.NET Server Configuration file.
Add your projects below! -->
<project name="winapp"
description="demoproject showing a small config" queue="Q1">
<webURL>http://172.25.165.10/ccnet/</webURL>
<!-- specify a state folder to prevent CCNet from saving it in Program Files\CruiseControl.NET\server
programs may not standard write their data in it on windows Vista and up)
-->
<sourcecontrol type="svn">
<trunkUrl>https://citdevbox.arcade.local:8443/svn/cardwellR/trunk/winapp</trunkUrl>
<workingDirectory>c:\builds\winapp</workingDirectory>
<username>***</username>
<password>***</password>
</sourcecontrol>
<state type="state" directory="C:\CCNet\State" />
<!-- specify a artifactDirectory to prevent CCNet from saving it in Program Files\CruiseControl.NET\server
programs may not standard write their data in it on windows Vista and up)
-->
<artifactDirectory>C:\CCNet\BuildArtifacts\MyFirstProject</artifactDirectory>
<tasks>
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\\v3.5\MSBuild.exe</executable>
<projectFile>C:\Builds\build\BootStrapper.msbuild</projectFile>
<buildArgs>/noconsolelogger /t:CTSx86;BuildZip /v:d</buildArgs>
<logger>ThoughtWorks.CruiseControl.MsBuild.XmlLogger,C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
<timeout>900</timeout>
</msbuild>
</tasks>
<triggers>
<!-- check the source control every X time for changes,
and run the tasks if changes are found -->
<intervalTrigger
name="continuous"
seconds="300"
buildCondition="IfModificationExists"
initialSeconds="5"/>
</triggers>
<publishers>
<xmllogger />
<artifactcleanup cleanUpMethod="KeepLastXBuilds"
cleanUpValue="50" />
</publishers>
</project>
</cruisecontrol>
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The root element must match the name of the section referencing the file, 'appSettings'
Source Error:
Line 1: cruisecontrol xmlns:cb="urn:ccnet.config.builder"
Source File: C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config Line: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456
You didn't post the content of your ccnet.config file which the error you are getting is complaining about. Lets start with the obvious. I would look to see if there is a typo in there, for example maybe a missing quote or something in the appSettings section. If you have the unmodified version revert back to that and see if your issue goes away and compare the unmodified with the modified.
There is an app called CCValidator which will tell you where the error is in your ccnet.config file. I suspect that is not where the problem is. It sounds like the error is in the ccservice.exe.config. Perhaps someone accidentally copied ccnet.config to ccservice.exe.config. The error may also be in your web dashboard's configuration.
I solved the issue by removing the build args tag.
</noconsolelogger /t:CTSx86;BuildZip /v:d>
My processor was 64 bit and I was using noconsolelogger /t:CTSx86 which is for a 32 bit processor. Anyway these were optional so I removed it worked fine.

Chrome extension automatic update not working

I configured the update url as following:
"update_url": "https://www.myextension.host.com/updates.xml"
And the updates.xml file:
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='aplfhldgnogkgfjopdbppahookjpfpad'>
<updatecheck codebase='https://www.myextension.host.com/updateExtension/chrome_2.0.crx' version='2.0' />
</app>
</gupdate>
But when I installed the extension and click the update now, nothing happened, the server does not detect the request for the updates.xml file either.
I started chrome with
chrome.exe --enable-logging --log-level=2
but cannot find any error log about the update. Well I did see some logs but I'm not sure it's related or not. Post below too:
[5468:1956:0515/114000:ERROR:accelerated_surface_win.cc(208)] Reseting D3D device
[5468:188:0515/114003:ERROR:textfield.h(156)] NOT IMPLEMENTED
[5468:428:0515/114007:ERROR:accelerated_surface_win.cc(208)] Reseting D3D device
[4500:476:0515/114131:ERROR:ipc_channel_win.cc(132)] pipe error: 109
[5468:3560:0515/114131:ERROR:accelerated_surface_win.cc(208)] Reseting D3D device
[5468:3048:0515/114218:ERROR:accelerated_surface_win.cc(208)] Reseting D3D device
[5676:1276:0515/120110:ERROR:ipc_channel_win.cc(132)] pipe error: 109
[3596:6072:0515/120540:ERROR:ipc_channel_win.cc(132)] pipe error: 109
Is there any debug way to better debug the update operation?
To get debugging information about the extension's updater process, start Chrome / Chromium with the following command:
chrome.exe --vmodule=extension_updater=2 --enable-logging
After starting Chrome, a log file called chrome_debug.log will be created in your user profile directory.
Without any other information, I guess that you've either got a typo in the extension ID or in the update URL. If your extension still doesn't install after fixing this issue, check whether the crx file is served with the application/x-chrome-extension MIME-type.

Resources