google / iosched

The Google I/O Android App
Apache License 2.0
21.78k stars 6.21k forks source link

Application not compiling #285

Open Prashanthlkv opened 6 years ago

Prashanthlkv commented 6 years ago

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 commented 6 years ago

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

syslogic commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

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

as seen in the following image

imagen

Omico commented 6 years ago

see https://github.com/material-components/material-components-android/commit/ba696b698468429b91c0e33a91b0526dc4700618#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 commented 6 years ago

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

firatkarababa commented 6 years ago

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 commented 6 years ago

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 commented 5 years ago

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 commented 5 years ago

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

lianchengtong commented 5 years ago

image

ptyagicodecamp commented 5 years ago

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'