Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Application not compiling #285

Open
Prashanthlkv opened this issue Aug 23, 2018 · 12 comments
Open

Application not compiling #285

Prashanthlkv opened this issue Aug 23, 2018 · 12 comments

Comments

@Prashanthlkv
Copy link

Application is not compiling. Getting below error

Android resource linking failed
error: resource style/TextAppearance.MaterialComponents.BottomNavigationView.Colored (aka com.google.samples.apps.iosched:style/TextAppearance.MaterialComponents.BottomNavigationView.Colored) not found.
error: failed linking references

@juanes30
Copy link

@Prashanthlkv It's the same, you managed to solve it?

@syslogic
Copy link

syslogic commented Aug 25, 2018

it builds against materialVersion = '1.0.0-beta01' (which might contain that style), but not against materialVersion = '1.0.0-rc01' (which may lack that style)... as just answered on stackoverflow.com... BUILD SUCCESSFUL in 4m 52s

not sure it this is "a bug" or "a feature"; it possibly should be reported there.

@juanes30
Copy link

@syslogic I'm not sure that's the problem, because I'm trying to make the project compile without modifying any dependency.

materialVersion = '1.0.0-beta01'
imagen

also download android studio 3.1.4 and it does not compile either.

@juanes30
Copy link

I have managed to make it compile by installing android studio 3.2.0 beta 4

as seen in the following image

imagen

@Omico
Copy link

Omico commented Aug 27, 2018

see material-components/material-components-android@ba696b6#diff-e4e6bbe5d1d0c16b9cb3b58a53a0bb22L62

implementation 'com.android.tools.build:gradle:3.2.0-rc02'
implementation 'com.google.android.material:material:1.0.0-rc01'

I think we should change @style/TextAppearance.MaterialComponents.BottomNavigationView.Colored to @style/Widget.MaterialComponents.BottomNavigationView.Colored

@mibrahimdev
Copy link

mibrahimdev commented Aug 27, 2018

@Omico 's solution is fine, if someone want to update the version

@firatkarababa
Copy link

Does anybody see an error series as below during compiling?

..FragmentMapBinding.java:36: error: unmappable character for encoding UTF-8
  public final ImageView expand?con;
.
.

@IgorGanapolsky
Copy link

IgorGanapolsky commented Aug 30, 2018

I am not able to compile this application. I am getting an error:

[kapt] An exception occurred: java.util.NoSuchElementException
at com.sun.tools.javac.util.List$2.next(List.java:432)
at com.google.common.collect.Iterators.getOnlyElement(Iterators.java:302)
at com.google.common.collect.Iterables.getOnlyElement(Iterables.java:254)
at dagger.android.processor.AndroidMapKeys.mapKeyValue(AndroidMapKeys.java:75)
at dagger.android.processor.AndroidMapKeys.lambda$annotationsAndFrameworkTypes$5(AndroidMapKeys.java:56)
at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1321)
at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:419)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1376)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:270)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at dagger.android.processor.AndroidMapKeys.annotationsAndFrameworkTypes(AndroidMapKeys.java:56)
at dagger.android.processor.AndroidMapKeyValidator.annotations(AndroidMapKeyValidator.java:65)
at dagger.shaded.auto.common.BasicAnnotationProcessor.getSupportedAnnotationClasses(BasicAnnotationProcessor.java:146)
at dagger.shaded.auto.common.BasicAnnotationProcessor.getSupportedAnnotationTypes(BasicAnnotationProcessor.java:158)
at dagger.shaded.auto.common.BasicAnnotationProcessor.getSupportedAnnotationTypes(BasicAnnotationProcessor.java:103)
at org.jetbrains.kotlin.kapt3.base.ProcessorWrapper.getSupportedAnnotationTypes(annotationProcessing.kt)
at com.sun.tools.javac.processing.JavacProcessingEnvironment$ProcessorState.

UPDATE: the solution is to downgrade from Dagger 2.17 to 2.16

@Kirito0512
Copy link

Kirito0512 commented Nov 28, 2018

I got this error too...show below .. and I use Android Studio 3.2.1...who can help me 😭

Android resource linking failed
Output:  error: resource style/TextAppearance.MaterialComponents.BottomNavigationView.Colored 
(aka com.google.samples.apps.iosched:style/TextAppearance.MaterialComponents.BottomNavigationView.Colored) not found.
error: failed linking references.

@Kirito0512
Copy link

hello, everyone,my huhansan come again, and I have solved this problem by
stackoverflow

@lianchengtong
Copy link

image

@ptyagicodecamp
Copy link

I solved this problem by changing TextAppearance to 'Widget' in the problem line. I've these versions for reference:

androidGradlePluginVersion = '3.4.1'
materialVersion = '1.0.0-beta01'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants