Errors after Updating Android Studio 3.0 [duplicate] - android-studio-3.0

This question already has answers here:
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
(49 answers)
Closed 4 years ago.
I just Updated Android studio to 3.0 and there some errors :
Error:failed linking file resources.
Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar]
Error:'' is incompatible with attribute android:background (attr) reference|color.
Error:error: '' is incompatible with attribute android:background (attr) reference|color.
C:\Users\orshk\OneDrive\MyButton2\MyButton2\app\src\main\res\layout\activity_main.xml
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:processDebugResources'.
Failed to execute aapt
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Information:BUILD FAILED in 3s
Information:7 errors
Information:0 warnings
Information:See complete output in console
Thank you!

As it is quite obvious you have provided a "" value of android:background attribute at some place inside activity_main.xml. Look for it and give it the appropriate value.

Related

Classpath error while configuring grails on Windows

I want to install grails on my windows 10 (x64). The grails version I have is 3.3.4, groovy version 2.4.14, JVM version 1.8.0_141. I can create an app but when I run it an error comes out:
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'hello'.
Could not resolve all dependencies for configuration ':classpath'.
Could not resolve org.grails:grails-gradle-plugin:3.3.4.
Required :
project :
Could not resolve org.grails:grails-gradle-plugin:3.3.4.
Could not get resource 'https://repo.grails.org/grails/core/org/grails/grails-gradle-plugin/3.3.4/grails-gradle-plugin-3.3.4.pom'.
Could not GET 'https://repo.grails.org/grails/core/org/grails/grails-gradle-plugin/3.3.4/grails-gradle-plugin-3.3.4.pom'.
Connect to repo.grails.org:443 [repo.grails.org/198.18.1.217] failed: Connection timed out: connect
Could not resolve org.grails.plugins:hibernate5:6.1.9.
Required by:
project :
Could not resolve org.grails.plugins:hibernate5:6.1.9.
Could not get resource
'https://repo.grails.org/grails/core/org/grails/plugins/hibernate5/6.1.9/hibernate5-6.1.9.pom'.
Could not GET 'https://repo.grails.org/grails/core/org/grails/plugins/hibernate5/6.1.9/hibernate5-6.1.9.pom'.
Connect to repo.grails.org:443 [repo.grails.org/198.18.1.217] failed: Connection timed out: connect
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
CONFIGURE FAILED
Total time: 1 mins 4.547 secs
Error Error initializing classpath: Connection timed out: connect (Use --stacktrace to see the full trace)
I have searched everywhere but haven't found a solution. Please help me to resolve this.
PS: Every time I try to run the app, strangely the net becomes unbelievably slow.

error message: Linker command failed with exit code 1 [duplicate]

This question already has answers here:
ld: file not found: linker command failed with exit code 1
(11 answers)
Closed 5 years ago.
I KNOW what this error message
"Linker command failed with exit code 1 (use -v to see invocation"
means. I have duplicate symbols.
What I DON'T know is what "use - v to see invocation" means.
How do I actually use -v? In Terminal or where? Please someone, give me an example of its actual use.
Thanks for your help.
I found a way to get the error info: Control-click on the red error indicator (at left), then select Show Error Log, which gives the complete information.
(Meanwhile the "Use -v" message remains useless.)

grails -version FATAL ERROR in native method

I'm trying to get grails version, but getting error all the time. OS: windows server 2012 and windows 8. I suspect that the port is busy, and I can't release it - need another exit from situation
So, I'm doing something like this in command line:
{PATH_TO_/bin/grails.bat} -version
The result is:
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]
So.. what can I do with it?
Thanks.
To resolve problem I've just set JAVA_OPTS
with
-Xrunjdwp:transport=dt_shmem,server=y,suspend=n
Documentation link

Error in installing the blackberry enterprise service 10 trial version

I am trying to install the BES 10(Blackberry enterprise service 10) in windows 7 os . I am stuck in SRP configuration. It Caught stuck in finalize initialization with the following error. Any idea to resolve them.
**<#01>[10000] (07/02 13:54:19.638):{0xDF8} CWebRequestWrapper::SubmitData: WinHttpQueryHeaders failing. Error code: 0. Status code: 405.
<#01>[10000] (07/02 13:54:19.638):{0xDF8} CRestApiWrapper::SetCertificateAttributes error sending data, result is [486003]
<#01>[10000] (07/02 13:54:19.638):{0xDF8} CDataContainer::DoApplyImpl: UbitexxCoreDataCon failed to apply. Result: 486023.
<#01>[10000] (07/02 13:54:19.638):{0xDF8} [CUbitexxCoreDataCon::Apply]: Failed to apply 'configuration.core.url.primary1' parameter.
<#02>[20000] (07/02 13:54:19.638):{0xDF8} CInstallStepSeq::PreApplyProcess: Errors encountered while applying Core Module. Core module may not be operational.**

Error preverifying class, coming while running my app

I am trying to run a sample project, but I am getting this error on the console and the app does not run.
I don't understand what this error means.
Packaging project ScheduleAir
C:\Eclipse\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.28\components\bin\rapc.exe -quiet codename=deliverables\Standard\4.5.0\scheduleair deliverables\Standard\4.5.0\scheduleair.rapc -sourceroot=C:\Documents and Settings\20041\workspace\ScheduleAir\src\com\intellisoft\schedule_air;C:\Documents and Settings\20041\workspace\ScheduleAir\src;C:\Documents and Settings\20041\workspace\ScheduleAir\res -import=C:\Eclipse\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.28\components\lib\net_rim_api.jar C:\Documents and Settings\20041\workspace\ScheduleAir\bin
Error preverifying class com.intellisoft.schedule_air.AppSettingScreen
VERIFIER ERROR com/intellisoft/schedule_air/AppSettingScreen.()V:
Illegal type in constant pool
Error!: Error: preverifier failed: C:\Eclipse\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.28\components\bin\preverify.exe -d C:\DOCUME ...
Packaging project ScheduleAir failed (took 0.437 seconds)
Could it be related to compiler target level in your Eclipse? For BB it should be set to 1.3, while by default Eclipse sets it to 1.5/1.6. Check "More detail on preverification errors ?" for details.
You must set JAVA_HOME in your system environment variables

Resources