dart-lang / pub-dev

The pub.dev website
https://pub.dev
BSD 3-Clause "New" or "Revised" License
774 stars 145 forks source link

Build failure after upgrading to cloud_firestore 0.3.x #1146

Closed ITJammish closed 6 years ago

ITJammish commented 6 years ago

URL: https://pub.dartlang.org/packages/cloud_firestore#-readme-tab-

Hi, after upgrading to use the cloud firestore plugin 0.3.0 (and later) from 0.2.12. I have the following stacktrace on build:

Running "flutter packages get" in sampleproject... 0.6s Launching lib/main.dart on Pixel 2 XL in debug mode... Initializing gradle... 0.7s Resolving dependencies... 0.9s Running 'gradlew assembleDebug'... registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java:5 57: error: cannot inherit from final StandardMessageCodec final class FirestoreMessageCodec extends StandardMessageCodec { ^ C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java:6 7: error: constructor StandardMethodCodec in class StandardMethodCodec cannot be applied to given types; new StandardMethodCodec(FirestoreMessageCodec.INSTANCE)); ^ required: no arguments found: FirestoreMessageCodec reason: actual and formal argument lists differ in length C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java:5 57: error: StandardMessageCodec() has private access in StandardMessageCodec final class FirestoreMessageCodec extends StandardMessageCodec { ^ C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java:5 64: error: method does not override or implement a method from a supertype @Override ^ C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java:5 68: error: cannot find symbol writeLong(stream, ((Date) value).getTime()); ^ symbol: method writeLong(ByteArrayOutputStream,long) location: class FirestoreMessageCodec C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java:5 71: error: cannot find symbol writeAlignment(stream, 8); ^ symbol: method writeAlignment(ByteArrayOutputStream,int) location: class FirestoreMessageCodec C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java:5 72: error: cannot find symbol writeDouble(stream, ((GeoPoint) value).getLatitude()); ^ symbol: method writeDouble(ByteArrayOutputStream,double) location: class FirestoreMessageCodec C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java:5 73: error: cannot find symbol writeDouble(stream, ((GeoPoint) value).getLongitude()); ^ symbol: method writeDouble(ByteArrayOutputStream,double) location: class FirestoreMessageCodec C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java:5 76: error: cannot find symbol writeBytes(stream, ((DocumentReference) value).getPath().getBytes(UTF8)); ^ symbol: method writeBytes(ByteArrayOutputStream,byte[]) location: class FirestoreMessageCodec C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java:5 78: error: writeValue(ByteArrayOutputStream,Object) is not public in StandardMessageCodec; cannot be accessed from outside package super.writeValue(stream, value); ^ C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java:5 82: error: method does not override or implement a method from a supertype @Override ^ C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java:5 88: error: cannot find symbol readAlignment(buffer, 8); ^ symbol: method readAlignment(ByteBuffer,int) location: class FirestoreMessageCodec C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java:5 91: error: cannot find symbol final byte[] bytes = readBytes(buffer); ^ symbol: method readBytes(ByteBuffer) location: class FirestoreMessageCodec C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java:5 95: error: cannot find symbol return super.readValueOfType(type, buffer); ^ symbol: method readValueOfType(byte,ByteBuffer) Note: C:\Users...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.3.2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin. java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 14 errors

FAILURE: Build failed with an exception.

• No issues found! `

isoos commented 6 years ago

This issue was moved to flutter/flutter#15972