Android Studio 3.0 Canary 2 update error - android-studio-3.0

Error:/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml:3 invalid color
Error:java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.internal.aapt.AaptException: AAPT2 compile failed:

As I have faced this issue on Android Studio 3.0 Canary 2, I got a solution here.
Just replace <item name="ic_back_api" type="drawable"/> with <item name="ic_back_api" type="drawable">#null</item>

Related

Problem with "multi_image_picker" in dart

I have the problem with library minSdk: Suggestion: use a compatible library with a minSdk of at most 16, or increase this project's minSdk version to at least 19
I Changed the build.gradle in the section minSdkVersion but show this:
D8: Program type already present: android.support.v4.app.INotificationSideChannel$Stub
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.prueba_2"
minSdkVersion 19
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
D8: Program type already present: android.support.v4.app.INotificationSideChannel$Stub
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\6.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\7.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\8.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\9.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\10.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\11.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\12.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\13.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\14.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\15.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\16.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\17.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\18.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\19.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\20.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\21.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\22.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\23.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\24.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\25.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\26.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\27.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\28.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\29.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\30.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\31.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\32.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\33.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\34.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\35.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\36.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\37.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\38.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\39.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\40.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\41.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\42.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\43.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\44.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\45.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\46.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\47.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\48.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\49.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\50.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\51.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\52.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\53.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\54.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\55.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\56.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\57.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\58.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\59.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\60.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\61.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\62.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\63.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\64.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\65.jar
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: android.support.v4.app.INotificationSideChannel$Stub
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17134.706], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Android Studio (version 3.3)
[√] VS Code (version 1.33.1)
[√] Connected device (1 available)
• No issues found!
This plugin was migrated from using the deprecated Android Support Library to AndroidX. If your project was migrated to use it as well you should install version 4.X.X of the plugin. If you are using the old project structure please use version 2.4.11
Had the same problem.
tried to migrate to AndroidX using this method as suggested by flutter documentation :
1.tried menu Refactor > Migrate to AndroidX
2.got "No usages found"
I still had the error , so i tried the solution in this link (using the selected answer) :
[Flutter Projects & Android X Migration Issues
And it worked perfectly

Using Xamarin in VS2015, "No resource identifier found for attribute 'cardCornerRadius' in package '

I am trying to use recyclerView in my android App with Xamarin in Visual Studio 2015 . And I have added those 3 Nuget packages: Xamarin.Android.Support.v4 Xamarin.Android.Support.v7.CardView Xamarin.Android.Support.v7.RecyclerView Packages
But when I build the project, I encountered these mistakes:
RecyclerViewTutorial\Resources\layout\row.axml(2): error APT0000: No resource identifier found for attribute 'cardCornerRadius' in package 'RecyclerViewTutorial.RecyclerViewTutorial'
I have updated those packages,but the problem is still here.
What can I do now?
The .axml file code is here:
<?xml version="1.0" encoding="utf-8"?>

Error message in Xamarin Studio: Multiple references to FSharp.Core.dll are not permitted

When I set up a new F# project in Xamarin Studio with a reference to Suave I get an error.
Here are the steps to reproduce the error message:
Create a new solution in Xamarin Studio 6. Type: Console Project in F#
Add the Suave nuget package: Suave 1.1.2
Open Program.fs and add this line on the top of the file: 'open Suave'
After this the word 'open' is decorated with red squiggles and when I move the mouse pointer over it a little pop up appears with this message:
Error: Multiple references to 'FSharp.Core.dll' are not permitted
Why does this error messages come up and how do I remove it?
What I have noticed is that the installation of the Suave nuget package had also caused the installation of the FSharp.Core nuget pakage. Here is the resulting packages.conf file:
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FSharp.Core" version="3.1.2.5" targetFramework="net45" />
<package id="Suave" version="1.1.2" targetFramework="net45" />
</packages>
This happens because the Xamarin's F# project template by default references the local copy of FSharp.Core.
Removing the (duplicated) reference should fix the issue.
I just updated Xamarin Studio to ignore the local copy of FSharp.Core if the project contains a reference to a NuGet version. Should be released in XS 6.1 cycle 8.

Failed to check license ilog.rules.res.xu.IlrLocalizedResourceException: error code: XU.ERROR.10700

I am trying to execute iLog jRules (Version 7.1) from Plain Java program. I am using J2SE session factory. Still I am getting below error. Can someone please enlighten ? Also what is the best and simple way to execute jRules rules from java main method ?
6/9/14 4:48 PM [SEVERE] 10700 - -.- - Failed to check license ilog.rules.res.xu.IlrLocalizedResourceException: Failed to check license, error code: XU.ERROR.10700
at ilog.rules.res.xu.util.IlrResourceExceptionHelper.createResourceException(IlrResourceExceptionHelper.java:44)
at ilog.rules.res.xu.util.IlrResourceExceptionHelper.createResourceException(IlrResourceExceptionHelper.java:78)
at ilog.rules.res.xu.spi.IlrManagedXUConnectionFactory.verifyRESLicense(IlrManagedXUConnectionFactory.java:1108)
at ilog.rules.res.xu.spi.IlrManagedXUConnectionFactory.getRulesetProvider(IlrManagedXUConnectionFactory.java:883)
at ilog.rules.res.xu.spi.IlrManagedXUConnection.getRulesetProvider(IlrManagedXUConnection.java:280)
at ilog.rules.res.xu.spi.IlrManagedXUConnection.createEngineManager(IlrManagedXUConnection.java:1659)
at ilog.rules.res.xu.spi.IlrManagedXUConnection.getEngineManager(IlrManagedXUConnection.java:1591)
at ilog.rules.res.xu.spi.IlrManagedXUConnection.getRulesetParameters(IlrManagedXUConnection.java:1508)
at ilog.rules.res.xu.cci.IlrXUConnection.getRulesetParameters(IlrXUConnection.java:499)
at ilog.rules.res.xu.cci.IlrXUInteraction.getRulesetInformation(IlrXUInteraction.java:739)
at ilog.rules.res.xu.cci.IlrXUInteraction.dispatchExecution(IlrXUInteraction.java:185)
at ilog.rules.res.xu.cci.IlrXUInteraction.execute(IlrXUInteraction.java:343)
at ilog.rules.res.xu.cci.IlrXUInteraction.execute(IlrXUInteraction.java:459)
at ilog.rules.res.xu.cci.IlrCCIClient.executeInteraction(IlrCCIClient.java:189)
at ilog.rules.res.xu.cci.IlrCCIRuleEngineClient.getRulesetArchiveProperties(IlrCCIRuleEngineClient.java:699)
at ilog.rules.res.session.util.IlrTraceHelper.<init>(IlrTraceHelper.java:111)
at ilog.rules.res.session.impl.IlrStatelessSessionBase.execute(IlrStatelessSessionBase.java:97)
at poc.PojoClientRunnerImpl.executeentpocrules(PojoClientRunnerImpl.java:88)
at poc.Main.main(Main.java:28)
Caused by: ilog.jum.client700.IluSAMAccessDeniedException: At 2014-06-09 11:18:33 GMT, SAM 3.0.0.1040: Access denied to module 'RES4J'.
If you want to inspect your access key, please do the following:
java -cp [location]sam.jar ilog.jum.client700.IluSAMAccessKey -summary
I got this issue resolved. It was because jar version mismatch. I was using jRules Studio version 7.1.1 and was executing using jRules version 7.0.0 jars .
I modified my classpath to use version 7.1.1 jars for jRules version 7.1.1 rule studio.

Phonegap and Blackberry WebWorks: build\StandardInstall does not exist

My environment is Windows XP.
JDK and Apache ant are installed.
Phonegap version is 1.7.0
BlackBerry Webworks SDK for smartphone: version 2.3.1
I'm following the instruction of http://docs.phonegap.com/en/1.7.0/guide_getting-started_blackberry_index.md.html#Getting%20Started%20with%20Blackberry to try phonegap on blackberry.
The sample Blackberry WebWorks sample application I use is this https://github.com/phonegap/phonegap/tree/master/lib/blackberry/sample
First I execute 'ant blackberry build'. Although it said "BUILD SUCCESSFUL", however, neither StandardInstall nor .cod was created. And the output contained error message like this:
[exec] E:\Temp\widgetGen.15924526831337325595265.tmp\extension\blackberry\common\util\URLDecoder.java:183: unclosed string literal
[exec] decodingMap.put( "%AC", "? );
[exec] ^
[exec] 100 errors
[exec] Error!: Error: java compiler failed: C:\Program Files\Java\jdk1.6.0_32\bin\javac.exe #E:\TEMP\rapc_02802fef.dir\options
[exec] [ERROR] RAPC exception occurred
The full build log is here http://www.cis.nctu.edu.tw/~gis90571/a.txt
Then I execute 'ant blackberry load-simulator', it shows:
...
BUILD FAILED
D:\WebWorks_projects\helloworld\build.xml:33: The following error occurred while
executing this line:
D:\WebWorks_projects\helloworld\blackberry.xml:123: D:\WebWorks_projects\hellowo
rld\build\StandardInstall does not exist.
the content of blackberry.xml is:
123: <copy todir="${simulator.dir}">
124: <fileset dir="${build.dir}/StandardInstall" includes="*.cod, *.cso, *.csl, *.alx" />
125: </copy>
(I put the sample app provided by phonegap in D:\WebWorks_projects and changed its name to "helloworld".)
I'm new to ant and blackberry.
Could someone please offer some help or hint? Thanks.
Answer:
It seems that the source file URLDecoder.java in \ext\common\blackberry\common\util is broken due to some encoding issue. Fix it and the problem solved.
An useful article here: http://whatdrewknows.blogspot.com/2012/04/cordova-blackberry-development-part-2.html
Your application is not successfully getting built.
If your application gets build and generate 3 folders
OTAInstall
StandardInstall
widget
As well as one application.zip file is also created.
If you get all these files then your application was successfully compiled and built.

Resources