我使用的是领域和Parceler,一切都很好,但是当我启用Proguard时,在执行以下操作时会出现一个错误:
Parcels.wrap(obj)
我得到了以下错误:
org.parceler.ParcelerRuntimeException: Unable to find generated Parcelable class for io.realm.g, verify that your class is configured properly and that the Parcelable class io.realm.g$$Parcelable is generated by Parc
我正在尝试安卓的库。到目前为止,我只有一个相同的错误,使用的是文档中的普通示例。
@Parcel(Parcel.Serialization.BEAN)
public class Example {
private String name;
private int age;
public String getName() { return name; }
public void setName(String name) { this.name = name; }
public int getAge() { return age; }
public void setAg
编辑
在清理和重新生成类之后,将不会生成类。
我在尝试使用Parcels.wrap()时遇到了这个错误
Unable to find generated Parcelable class for xyz.xyz.models.reclamation.Reclamation, verify that your class is configured properly and that the Parcelable class xyz.xyz.models.reclamation.Reclamation$$Parcelable is generated by Parceler.
但是创建了Rec
今天更新到Android Studo 2.3 Canary后,我遇到了一个问题。
构建完成,没有错误,但当我运行应用程序时,gradle控制台一直显示:
找不到 android.databinding.annotationprocessor.ProcessDataBinding
这是我的build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
我使用Kotlin,我有用于安卓数据库房间的Entity类。我想让它成为Parcelable,但是我得到了这个错误:
/Users/rafael/AndroidStudioProjects/Cevsen/app/build/tmp/kapt3/stubs/debug/me/aizon/rafaelekol/cevsen/entities/Bab.java
Error:(6, 1) error: Parceler: No @ParcelConstructor annotated constructor and no default empty bean constructor found.
Wa
我决定使用Parceler,因为它看起来像一个很棒的库,并且得到了作者的很好的支持。我正在使用Parceler包装一个对象,并将它传递给Bundle中的另一个活动。当我试图打开对象时,我得到的是错误:android.os.Bundle cannot be cast to org.parceler.ParcelWrapper
我的FirstActivity代码:
User user = responseData.getUser();
Bundle bundle = new Bundle();
bundle.putParcelable("User", Parcel
我尝试使用Parceler使用ORMLite,但是Parceler捕获了一个错误:
Error:(44, 36) error: Parceler: Unable to find read/write generator for type com.j256.ormlite.dao.ForeignCollection<PassKeyItem> for CategoryItem.passKeyItems
这是我的目标:
CategoryItem.class
@Parcel
@DatabaseTable(tableName = "categories")
public cl
我正在尝试在我的android项目中使用Parceler。这是我的宋代模型。
@Parcel(implementations = {SongRealmProxy.class},
value = Parcel.Serialization.BEAN,
analyze = {Song.class})
public class Song extends RealmObject {
@PrimaryKey
public String id;
public String isrc;
public String songName;
public String
在android上使用Parceler时,是否可以使用@Parceler对接口进行注释,并让它在实现类中获取可能的@ParcelConstructor和@ParcelFactory注释?
这样做的目的是避免编写自定义ParcelConverter来重用Parceler中的泛型字段映射,但是,像implementations= to @Parcel这样的东西似乎更多地指向将子类型映射到超级类型(而不是反过来):
@Parcel // can this be used to serialize **all** implementations ...
public interface MyIfa
我正在使用安卓上的Parceler库()
我还使用Jacoco作为代码覆盖范围。
但是,在添加Parceler之后,使用Jacoco运行我的测试代码覆盖率,现在失败了,出现了以下错误:
由: /Users/me/android/myapp/blah/app/build/intermediates/classes/demo/com/me/blah/appname/model/User$Parcelable$Creator$0.class :java.io.FileNotFoundException引起(没有这样的文件或目录)
用户类如下:
@Parcel
public class Use
Error:(27, 64) error: Parceler: Unable to find read/write generator for type android.text.SpannableString for android.text.SpannableString span2
Error:(27, 87) error: Parceler: Unable to find read/write generator for type android.text.SpannableString for android.text.SpannableString span3
Error:(27,
我将代码更改为androidx,但当我尝试使用gradle同步时,会出现以下错误:
ERROR: Unable to resolve dependency for ':Debug/compileClasspath': Could not resolve com.google.android:support-v4:r11.
Show Details
Affected Modules: AppName
ERROR: Unable to resolve dependency for ':DebugAndroidTest/compileClasspath': Cou
在迁移到Android 3之后,我无法编译,因为我“有折叠错误:
Error:Could not find the AndroidManifest.xml file, using generation
folder
[/home/salacr/git/Evotech/app/build/generated/source/apt/debug])
Error:Parceler: Code generation did not complete successfully. For
more details add the compiler argument -AparcelerStackt
我在扩展BottomSheetDialogFragment的整个类中都出错了
Cannot access 'androidx.lifecycle.HasDefaultViewModelProviderFactory' which is a supertype of 'FavoriteBottomDialogFragment'. Check your module classpath for missing or conflicting dependencies
类在app模块中,该模块实现了另外两个模块:核心和表示核心。
build.grad