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 '
Related
I am using AOSP android 11 in the RPi4. I have enabled the i2c in config.txt using the param dtparam=i2c_arm=on.
The i2c is showing in the /sys/bus/i2c/devices/i2c-1 but /dev/i2c is not listing in the dev folder.
I want to access the APDS-9960 sensor in AOSP.
Please suggest some solution.
Finally, I got it.
Open the config file bcm2711_defconfig under the kernel path kernel/arpi/arch/arm64/configs and change the config value CONFIG_I2C_CHARDEV=y.
This will enable the dev/i2c.
Can you advise how to configure the plugin verifier so it would return errors as JetBrains marketplace does, please?
Error from the marketplace:
[plugin] depends on plugin com.jetbrains.php that couldn't be resolved with respect to IntelliJ IDEA Ultimate IU-202.8194.7 (2020.2.4)
Note that the [plugin] cannot be installed into IntelliJ IDEA Ultimate IU-202.8194.7 (2020.2.4) without mandatory com.jetbrains.php
Found 1 incompatibility with IntelliJ IDEA Ultimate IU-202.8194.7 (2020.2.4), some of which may be caused by the missing dependencies.
When running runPluginVerifier locally everything is fine:
2020-12-11T13:01:29 [main] INFO verification - Finished 1 of 2 verifications (in 3.1 s): IU-202.8194.7 against com.lokalise.jetbrainsideplugin:1.0.0-alpha: Compatible
2020-12-11T13:01:30 [main] INFO verification - Finished 2 of 2 verifications (in 3.6 s): PS-202.6948.87 against com.lokalise.jetbrainsideplugin:1.0.0-alpha: Compatible
I would like to catch such an error during CI at most instead of throwing the plugin at the marketplace team.
Here is the gradle task configuration (Kotlin):
import org.jetbrains.intellij.tasks.RunPluginVerifierTask
...
tasks.runPluginVerifier {
ideVersions("PS-202.6948.87,IU-202.8194.7")
setFailureLevel(RunPluginVerifierTask.FailureLevel.ALL)
}
I struggled with it quite a bit. Found it.
tasks {
runPluginVerifier {
ideVersions.set(listOf("PS-202.6948.87","IU-202.8194.7"))
}
...
}
I'm trying to build an existing project in Android Studio on a MAC and I'm running into this build error:
Could not determine artifacts for io.reactivex.rxjava2:rxandroid:2.0.0-RC1
> Could not get resource 'http://jcenter.bintray.com/io/reactivex/rxjava2/rxandroid/2.0.0-RC1/rxandroid-2.0.0-RC1.aar'.
> Could not HEAD 'http://jcenter.bintray.com/io/reactivex/rxjava2/rxandroid/2.0.0-RC1/rxandroid-2.0.0-RC1.aar'.
> Connect to jcenter.bintray.com:80 [jcenter.bintray.com/108.168.243.150] failed: Operation timed out
_
_
_
Seems to me Android Studio cannot access jcenter.bintray.com:80...so here is what I tried so far:
I can access jcenter.bintray.com:80 from my browser with no issue.
I can download the file at: http://jcenter.bintray.com/io/reactivex/rxjava2/rxandroid/2.0.0-RC1/rxandroid-2.0.0-RC1.aar. --- from my browser with NO issue
I configured my Android Studio to look for auto proxy settings
(Appearance and Behavior > System Settings > http proxy > I selected
"auto-detect proxy settings" and in the resulting box input my
network user name and password)
I also tried creating a gradle.properties file including (populated with values of course):
systemProp.http.proxyPort=
systemProp.http.proxyUser=
systemProp.http.proxyPassword=
systemProp.https.proxyPassword=
systemProp.https.proxyHost=
systemProp.http.nonProxyHosts=
systemProp.http.proxyHost=
systemProp.https.proxyPort=
systemProp.https.nonProxyHosts=
systemProp.https.proxyUser=
Is there something I missed / or what else could be the issue?
I am unable to run app from android studio to my samsumg phone running android 2.3.6. I am getting Application installation Failed popup refer below screenshot.
when I click on OK I get below error in log
Failure [INSTALL_FAILED_DEXOPT]
DEVICE SHELL COMMAND: pm uninstall my.package.name
Unknown failure
I got in this trouble after adding Google Cloud Module called "App Engine Backend with Google Cloud Messaging".
This is exactly same problem described in one of stack overflow questions here
I tried the accepted answer.
Ran dex-method-counts application I got "Overall method count: 24474" in terminal. I dont understand what to do next?
(Note : The same application is running on my other device running on kitkat.)
Please help to resolve this issue. I am struggling from past two days. I know there are many similar questions but nothing helped me.
Built--> Clean is not working.
Here is my build.gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "my.package.name"
minSdkVersion 9
targetSdkVersion 19
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile files('libs/libGoogleAnalyticsServices.jar')
compile project(path: ':gcmAppEngineBackend', configuration: 'android-endpoints')
compile 'com.android.support:support-v4:22.0.0'
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.google.android.gms:play-services:7.0.0'
}
Thanks in advance!
This usually happens because your device doesn't have enough space in memory.
Delete some apps and try again
When i got this error, i was using a Nexus 4 in the AVD-Manager. By default this device was created with 500MB internal storage.
I increased the storage to 2048MB and the "stale dexed" error was gone.
To increase the internal Storage:
Go to ADV-Manager
Select the Edit Button of the corresponding device under "Actions"
Click "Show Advanced Settings"
Increase your internal Storage
In case it's an Android Emulator giving you a "stale dexed" message, this helped for me on a Mac:
stop emulator
cd ~/.android/avd/[emulator name].avd
rm *.lock
wipe emulator
start emulator
I solved this by Wiping data .
Android Studio -> AVD Manager -> Actions -> Wipe Data
It seems like your emulator low on disk space. But after you increase your disk space you still get error.
I faced the same problem, increase disk space and do factory reset for the emulator worked as well for me. To reset your emulator go to Settings -> Backup and Restore inside the emulator then reset.
Disable Instant Run.
Android Studio -> Preferences -> Instant Run
Also I have the same problem. To make it work I had to remove "third party library" from dependencies.
Or try this: https://developer.android.com/tools/building/multidex.html
Replace this 'compile files('libs/libGoogleAnalyticsServices.jar')' with this 'com.google.android.gms:play-services-analytics:8.3.0'
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'