پاسخ ها ( 4 )

    0
    2018-09-15T07:01:45+03:30

    دوست عزیز عکس دیده نمیشه

    0
    2018-09-20T19:51:43+03:30

    ممنون میشم کمکم کنید

    0
    2018-09-21T14:59:31+03:30

    تو dex کردن پروژه خطا میده …

    از کتابخونه ی خاصی یا کد جاوا در پروژه استفاده کردید؟

      0
      2018-09-21T18:16:51+03:30

      سلام.

      بله.

      از کدهای مانیفست برای سایت پوشه استفاده کردم.

      این کدهاشه:

      AddManifestText(
      <permission
              android:name="co.ronash.pushesampleb4a.permission.C2D_MESSAGE"
              android:protectionLevel="signature" />
      <uses-permission android:name="co.ronash.pushesampleb4a.permission.C2D_MESSAGE" />
      
      <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
      <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
      )
      
      'optional permissions
      AddManifestText(
      	<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
      	<uses-permission android:name="com.google.android.gms.permission.ACTIVITY_RECOGNITION" />
      )
      
              AddApplicationText(
      <receiver android:name="co.ronash.pushe.receiver.UpdateReceiver" >
      <intent-filter>
          <action android:name="android.intent.action.PACKAGE_REPLACED" />
      
          <data
                  android:path="co.ronash.pushesampleb4a"
                  android:scheme="package" />
      </intent-filter>
      </receiver>
      
      <service
      android:name="co.ronash.pushe.service.GcmService"
      android:exported="false" >
      <intent-filter android:priority="999">
          <action android:name="com.google.android.c2dm.intent.RECEIVE" />
      </intent-filter>
      </service>
      
      <receiver
      android:name="co.ronash.pushe.receiver.FallbackGcmNetworkManagerReceiver"
      android:exported="true" >
      <intent-filter>
          <action android:name="co.ronash.pushe.CHECK_TASKS" />
      </intent-filter>
      </receiver>
      
      <service
      android:name="co.ronash.pushe.service.FallbackGcmTaskRunner"
      android:exported="false" >
      <intent-filter>
          <action android:name="co.ronash.pushe.ACTION_TASK_READY" />
      </intent-filter>
      </service>
      <service
      android:name="co.ronash.pushe.task.scheduler.gcm.GcmTaskRunner"
      android:exported="true"
      android:permission="com.google.android.gms.permission.BIND_NETWORK_TASK_SERVICE" >
      <intent-filter>
          <action android:name="com.google.android.gms.gcm.ACTION_TASK_READY" />
      </intent-filter>
      </service>
      <service
      android:name="co.ronash.pushe.service.IntentTaskRunner"
      android:exported="false" />
      <service
      android:name="co.ronash.pushe.service.InstanceIDService"
      android:exported="false" >
      <intent-filter>
          <action android:name="com.google.android.gms.iid.InstanceID" />
      </intent-filter>
      </service>
      <activity
      android:name="co.ronash.pushe.activities.PopupDialogActivity"
      android:theme="@style/PusheTransparent">
      </activity>
      
      <receiver android:name="co.ronash.pushe.receiver.BootAndScreenReceiver">
      <intent-filter>
          <action android:name="android.intent.action.BOOT_COMPLETED"/>
      </intent-filter>
      </receiver>
      <service android:name="co.ronash.pushe.service.ScreenStateService">
      <intent-filter>
          <action android:name="co.ronash.pushe.service.ScreenStateService" />
      </intent-filter>
      </service>
      
      <activity
      android:name="co.ronash.pushe.activities.WebviewActivity">
      </activity>
      
      <receiver android:name="co.ronash.pushe.receiver.AppUsageAlarmReceiver">
      </receiver>
      
      <receiver android:name="co.ronash.pushe.receiver.ConnectivityReceiver">
      <intent-filter>
          <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
      </intent-filter>
      </receiver>
      
      <receiver
      android:name="co.ronash.pushe.receiver.AddReceiver"
      android:exported="false">
      <intent-filter>
          <action android:name="com.evernote.android.job.ADD_JOB_CREATOR"/>
      </intent-filter>
      </receiver>
      
      <receiver android:name="co.ronash.pushe.receiver.AppChangeReceiver">
      <intent-filter>
          <action android:name="android.intent.action.PACKAGE_INSTALL" />
          <action android:name="android.intent.action.PACKAGE_ADDED" />
          <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
          <data android:scheme="package"/>
      </intent-filter>
      </receiver>
      
      <service
      android:name="com.evernote.android.job.v21.PlatformJobService"
      android:exported="false"
      android:permission="android.permission.BIND_JOB_SERVICE" />
      <service
      android:name="com.evernote.android.job.v14.PlatformAlarmService"
      android:exported="false" />
      
      <receiver
      android:name="com.evernote.android.job.v14.PlatformAlarmReceiver"
      android:exported="false" >
      <intent-filter>
          <action android:name="com.evernote.android.job.v14.RUN_JOB" />
          <action android:name="net.vrallev.android.job.v14.RUN_JOB" />
      </intent-filter>
      </receiver>
      <receiver
      android:name="com.evernote.android.job.JobBootReceiver"
      android:exported="false" >
      <intent-filter>
          <action android:name="android.intent.action.BOOT_COMPLETED" />
      </intent-filter>
      </receiver>
      <service
      android:name="com.evernote.android.job.gcm.PlatformGcmService"
      android:exported="true"
      android:permission="com.google.android.gms.permission.BIND_NETWORK_TASK_SERVICE">
      <intent-filter>
          <action android:name="com.google.android.gms.gcm.ACTION_TASK_READY"/>
      </intent-filter>
      </service>
      
      <activity
          android:name="co.ronash.pushe.activities.RequestAccessDialogActivity"
          android:theme="@style/PusheTransparent" >
      </activity>
      
      <service android:name="co.ronash.pushe.service.PusheActivityService" />
      
      <provider
          android:name="co.ronash.pushe.provider.PusheProvider"
          android:authorities="co.ronash.pushesampleb4a.co.ronash.pushe.pusheprovider"
          android:exported="false"
          android:enabled="true"
          android:grantUriPermissions="true">
          <meta-data
          android:name="android.support.FILE_PROVIDER_PATHS"
          android:resource="@xml/provider_paths" />
      </provider>
      
      <service
      android:name="co.ronash.pushe.task.tasks.NetworkConnect"
      android:permission="android.permission.BIND_JOB_SERVICE" />
      
      <service android:name="co.ronash.pushe.receiver.PusheGcmReceiver"
      android:permission="android.permission.BIND_JOB_SERVICE"
      />
      
      <receiver
          android:name="com.google.android.gms.gcm.GcmReceiver"
          android:exported="true"
          android:permission="com.google.android.c2dm.permission.SEND" >
          <intent-filter>
              <action android:name="com.google.android.c2dm.intent.RECEIVE" />
              
              <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
              
              <category android:name="${applicationId}" />
          </intent-filter>
      </receiver>
          <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/>
          <meta-data android:name="co.ronash.pushe.token" android:value="PUSHE_76583046756"/>
          <meta-data android:name="co.ronash.pushe.cr" android:value="aHR0cDovLzcxOTI5YWQ2ZGEyNjQ4ZDhhMWE5ZDQxNmEwZGRmNWExOjE0ZTM5ZWMyZTE2OTRhNWM4MGNkNzMzYTIyYjlkZmE2QGNhLnB1c2hlLmNvLzQxNDI="/>
      )

      کدهای جیسون هم هستش.

      این دستورات به تنهایی من روی یک پروژه خام تست کردم، مشکلی نداره، اما توی پروژه من که کتابخانه های زیادی درش اضافه شده، این خطارو میده.

      فکر کنم با دستورات دیگه تداخل داره.

      ممنون میشم راهنماییم کنید تا رفعش کنم.

    0
    2018-09-22T14:24:15+03:30

    اول باید ببینید با کدوم یکی از کتابخونه ها یا کدهایی که نوشتید مشکل داره

    ابتدا کتابخونه ها رو یکی یکی غیر فعال کنید و از پروژه خروجی بگیرید تا ببینید مشکل از کدوم کتابخونه است

    اگر مشکل از کتابخونه باشه؛ با کتابخونه های مشابه کارتون رو راه بندازید

ارسال یک پاسخ