当前位置: 首页 > 知识库问答 >
问题:

导航抽屉验证器内部的ParseQuery错误拒绝了类com.parse.ParseQuery

鲜于海
2023-03-14

我把Android Studio更新到了最后一个版本,把Graddle更新到了3.3版本。现在,当运行应用程序时,一切都很顺利,除了parse.com查询中的这个错误:

log:09-25 10:33:53.846 631 3-6640/com.xxxxx.xxxxxe/ART:对/data/app/com.dogelier.dogelier-2/base.apk:classes30.dex中的类com.parse.parsequery进行验证失败,原因是:由于错误方法void com.parse.parsequery com.parse.parsequery com.parse.parsequery void com.parse.parsequery.checkifrunning(布尔)09-25 10:33:53.846 631 3-6640/com.dogelier.dogelier:G.Thread.Run(Thread.java:818)导致的原因:java.lang.VerifyError:由于错误的方法void com.parse.parsequery.CheckifRunning(布尔)(“com.parse.parsequery”的声明出现在/data/app/com.dogelier.dogelier.dogelier-2/base.apk:classes30.dex)中的com.dogelier.dogelier.naveGacion$RemoteDataTask.DoinBackground(naveGacier.naveGacion

Error LINE


private class RemoteDataTask extends AsyncTask<Void, Void, Void> {
    @Override
    protected void onPreExecute() {
        super.onPreExecute();

        progress = new GifLoadingView();
        progress.setImageResource(R.drawable.dogelier3);
        progress.setDimming(false);
        progress.show(getFragmentManager(), "");


    }



    @Override
    protected Void doInBackground(Void... params) {
        // Create the array
        dogelieropulationlist = new ArrayList<DogelierPopulation>();

        try {
            // ERROR LINE HERE IN PARSEQUERY
            ParseQuery<ParseObject> query = new ParseQuery<ParseObject>("Doghoteliers");
            // Locate the column named "ranknum" in Parse.com and order list
            // by ascending
            //query.orderByAscending("");
            query.whereEqualTo("activado", true);
            query.setLimit(limit);


            ob = query.find();
            for (final ParseObject dogelier : ob) {
                // Locate images in flag column

             final DogelierPopulation map = new DogelierPopulation();

                ParseFile image = (ParseFile) dogelier.get("foto");
                image.getData();
                Bitmap bmp = BitmapFactory
                        .decodeByteArray(
                                image.getData(), 0, image.getData().length);

                map.setFoto(bmp);

                map.setDireccion((String) dogelier.get("ciudad"));
                map.setNombre((String) dogelier.get("Nombre"));
                map.setTitulo((String) dogelier.get("titulo"));
                map.setDescripcion((String) dogelier.get("presentacion"));
                map.setPrecio((String) dogelier.get("precio"));
                map.setEstrellas(dogelier.getInt("Estrellas"));

                dogelieropulationlist.add(0,map);




            }
        } catch (ParseException e) {
            Log.e("Error1", e.getMessage());
            e.printStackTrace();
            errorFragment = new ErrorFragment();
            manager = getSupportFragmentManager();
            manager.beginTransaction().replace(R.id.content_navegacion,
            errorFragment).commit();


        }
        return null;
    }

    @Override
    protected void onPostExecute(Void result) {
        // Locate the listview in listview_main.xml

        listview = (ListView) findViewById(R.id.listview);
        // Pass the results into ListViewAdapter.java
        adapter = new ListViewAdapter(Navegacion.this,
                dogelieropulationlist);
        // Binds the Adapter to the ListView
        listview.setAdapter(adapter);
        CloseProgress(progress);
        swipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_refresh_layout);
        swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
            @Override
            public void onRefresh() {
                swipeRefreshLayout.post(new Runnable() {
                                            @Override
                                            public void run() {
                                                swipeRefreshLayout.setRefreshing(true);

                                                new LoadMoreDataTask().execute();
                                            }
                                        }
                );
            }
        });



    }



GRADDLE

apply plugin: 'com.android.application'

android {
    signingConfigs {
        config {
            keyAlias 'Xxxxxx'
            keyPassword 'xxxxxxxx'
            storeFile file('C:/KeyStores/xxxxxx.jks')
            storePassword 'xxxxxxxx'
        }
    }
    compileSdkVersion 26
    buildToolsVersion '25.0.1'
    defaultConfig {
        applicationId "com.xxxxxx.xxxxxxx"
        minSdkVersion 21
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.config
        }
        debug {
        }
    }
    dexOptions {
        javaMaxHeapSize "4g"
    }

    packagingOptions {
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE'
    } }




repositories {
    mavenCentral()
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
    jcenter()
    maven { url "https://jitpack.io" }
    maven { url "https://maven.google.com" }

}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile files('libs/httpclient-android-4.3.5.1.jar')
    compile files('libs/apache-commons-codec-1.4.jar')
    compile 'com.android.support:appcompat-v7:26.0.1'
    compile 'com.android.support:design:26.0.1'
    compile 'com.android.support:support-v4:26.0.1'
    compile 'com.android.support:recyclerview-v7:26.0.1'
    compile 'com.android.support:cardview-v7:26.0.1'
    compile 'com.parse:parse-android:1.15.2'
    compile 'pl.bclogic:pulsator4droid:1.0.3'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.pkmmte.view:circularimageview:1.1'
    compile 'com.parse:parsefacebookutils-v4-android:1.10.3@aar'
    compile 'com.facebook.android:facebook-android-sdk:4.7.0'
    compile 'com.parse:parseui-login-android:0.0.2'
    compile 'com.parse:parseui-widget-android:0.0.2'
    compile 'com.parse:parsetwitterutils-android:1.10.3'
    compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
    compile 'org.apache.directory.studio:org.apache.commons.io:2.4'
    compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1'
    compile 'com.google.android.gms:play-services-maps:11.0.4'
    compile 'com.google.android.gms:play-services-location:11.0.4'
    compile 'fr.tvbarthel.blurdialogfragment:lib:2.2.0'
    compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.4'
    compile 'com.roomorama:caldroid:3.0.1'
    compile 'com.seatgeek:placesautocomplete:0.2-SNAPSHOT'
    compile 'com.github.andremion:louvre:1.2.0'
    compile 'com.github.sharish:CreditCardView:v1.0.4'
    compile 'com.wdullaer:materialdatetimepicker:3.3.0'
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.daimajia.easing:library:1.0.1@aar'
    compile 'com.daimajia.androidanimations:library:1.1.3@aar'
    compile 'hanks.xyz:smallbang-library:0.1.2'
    compile 'com.akhgupta:android-easylocation:1.0.1'
    compile 'com.google.code.gson:gson:2.7'
    compile 'com.stripe:stripe-android:4.1.5'
    compile 'com.parse:parse-livequery-android:1.0.4'
    compile 'com.github.githubwing:DragPhotoView:1.0.1'
    compile 'me.shaohui.advancedluban:library:1.3.5'
    compile 'com.google.android.gms:play-services-auth:11.0.4'
    compile 'com.google.android.gms:play-services-gcm:11.0.4'
    compile 'com.stepstone.apprating:app-rating:1.2.0'
    compile 'com.sandrios.android:sandriosCamera:1.0.8'
    compile 'com.android.support:percent:26.0.1'
    compile 'com.google.android.gms:play-services-places:11.0.4'
    compile 'com.android.support:multidex:1.0.0'

}

共有1个答案

东郭自珍
2023-03-14

我发现了错误,如果将来有人有的话。解析sdk、ParseUI和Facebook sdk如果不指向同一个版本,我就会产生冲突,所以只需确保它们都兼容即可。

 类似资料:
  • 有人能告诉我如何创建活动到这个主要活动,导航抽屉将看到在所有他们?我需要使用这个特定的MainActivity代码。我不需要使用碎片,只要3个简单的活动将添加到这个抽屉。 NavDrawer布局:

  • 我有一个导航抽屉活动,其中有四个片段都很好。我还有另一个活动,我应该调用一个片段,它与导航抽屉活动有关。我已经修复了从另一个单独的活动中调用片段的问题。这里真正的问题是,如果我在导航抽屉活动中从碎片B上按back,它会返回到主碎片a,如果我从碎片a上按back,它会显示碎片B,实际上应该从应用程序中退出,它不应该显示碎片B。 我试过很多东西,比如:和覆盖导航抽屉活动中的onBackPressed(

  • 我在将与和组合时遇到布局问题。 问题是,NavigationDrawer及其内容隐藏在工具栏后面。我已经做了很多研究,尝试了很多重组,但没有一个“解决方案”能解决我的问题。 在这个Webm小视频中可以找到一个演示:https://www.dropbox.com/s/i5zfc2x2ts2fws7/navigation_drawer_stackoverflow32523188.webm?dl=0 基

  • 有人知道如何实现一个滑动菜单像一些顶级应用程序今天吗? 其他堆栈溢出问题还没有关于如何做到这一点的答案,所以我正在尝试收集尽可能多的信息来帮助其他人。我在下面提到的所有应用程序都很好地实现了幻灯片菜单。 只有点击左上角的G+标识,才能从第一屏进入第二屏。注意,整个屏幕从它的位置移动,并且get被推到屏幕的右侧(包括操作栏)。要回到第一个屏幕,您可以将右侧滑回焦点,也可以再次单击G+图标。 您可以使

  • 我有一个程序,我想实现一个滑动菜单。 首先,我尝试了导航抽屉导航抽屉,这是我想要的,因为: 1)它不推屏幕,它覆盖它2)当我点击按钮上左它打开菜单3)当我尝试点击屏幕上的另一个 我不想有一个按钮向上左边,我希望用户点击一个按钮从屏幕和每次不同的滑动菜单出现。 我也尝试了jfeinstein10滑动菜单,但它不覆盖屏幕,它只是推开它,他们告诉我,这是不可能改变的。但另一方面,它是容易的,在某些方面更

  • 当我单击home,edit profile时,我想要一个空白片段,但它显示无处不在的注册活动,因为我的content_main framelayout id是fragment,它在mainactivity中的调用也是my signup页面(fragmentmanager.begintransaction().replace(r.id.fragment,editFragment).commit();