رفتن به مطلب
  • 0

تداخل کتابخانه پوشه


Javad25564

سوال

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

B4A Version: 8.80
Parsing code.    (0.13s)
Building folders structure.    (0.02s)
Compiling code.    (12.43s)
Compiling layouts code.    (0.18s)
Organizing libraries.    (0.00s)
Generating R file.    (7.40s)
Compiling debugger engine code.    (9.08s)
Compiling generated Java code.    (15.73s)
Convert byte code - optimized dex.    Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimatorRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnyRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnyThread;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/ArrayRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AttrRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/BinderThread;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/BoolRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/CallSuper;
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:692)
	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:315)
	at com.android.dx.command.dexer.Main.runDx(Main.java:293)
	at com.android.dx.command.dexer.Main.main(Main.java:249)
	at com.android.dx.command.Main.main(Main.java:94)
Caused by: java.lang.InterruptedException: Too many errors
	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:684)
	... 4 more

 

لینک ارسال
به اشتراک گذاری در سایت های دیگر

7 پاسخ به این سوال تاکنون داده شده است

ارسال‌های توصیه شده

در 4 ساعت قبل، godping گفته است :

منم همین مشکلو دارم حل نشد مجبور شدم برم سراغ چشمک

کار با چشمک خوبه؟؟

لینک ارسال
به اشتراک گذاری در سایت های دیگر

در 7 ساعت قبل، hosseinkarimyan گفته است :

سلام این با کتابخانه appcompad فکر کنم تداخل داره برای حل بهترین راه این هست کتابخانه زیر دانلود و جایگزین کنید :

 

http://s9.picofile.com/file/8353535184/b4a_no_conflict.zip.html

توجه این کد رو حتما در اکتیویتی قرار بدین

 

 


Dim p As Pushe
	p.initialize()
	p.getPusheId()
	Log("pusheId is :" & p.getPusheId())
	If p.pusheInitialized() Then 
		p.sendSimpleNotifToUser(p.getPusheId(), "hi", "simple notif from this app to this device")
    End If

 

اوکی شد.

لینک ارسال
به اشتراک گذاری در سایت های دیگر

در در 1397/12/10, 18:28:52، mohammade79 گفته است :

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

 


'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="22"/>
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>)
	
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'CreateResourceFromFile(Macro, Themes.DarkTheme)
SetApplicationAttribute(android:supportsRtl, "true")
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
AddPermission("android.permission.INTERNET")
AddPermission("android.permission.READ_PHONE_STATE")
AddManifestText(<uses-permission android:name="android.permission.GET_ACCOUNTS" />)



CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">#292d33</item>
        <item name="colorPrimaryDark">#292d33</item>
        <item name="colorAccent">#292d33</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
    </style>
	 
</resources>


)
CreateResource(values-v21, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">#292d33</item>
        <item name="colorPrimaryDark">#292d33</item>
        <item name="colorAccent">#292d33</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
		<item name="android:windowTranslucentStatus">false</item>
        <item name="android:windowTranslucentNavigation">false</item>
		<item name="android:windowDrawsSystemBarBackgrounds">false</item>
        <item name="android:fitsSystemWindows">true</item>
    </style>
	 
</resources>


)

                 
AddManifestText(
<permission
        android:name="com.appdroids.movietimes.permission.C2D_MESSAGE"
        android:protectionLevel="signature" />
<uses-permission android:name="com.appdroids.movietimes.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="com.appdroids.movietimes"
            android:scheme="package" />
</intent-filter>
</receiver>
<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="com.appdroids.movietimes" />
</intent-filter>
</receiver>
<service
android:name="co.ronash.pushe.service.GcmService"
android:exported="false" >
<intent-filter>
    <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"/>

    <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="اینجا رو کد خودتو بزن "/>
    <meta-data android:name="co.ronash.pushe.cr" android:value="اینجا کد خودتو بنزن"/>
)

        

 

اونچیزی که توی سایت پوشه گفته کتابخونه قدیمی بدون firebase هست و منقضی شده و از طرف گوگل تا چند ماه دیگه بیشتر بهش سرویس داده نمیشه

لینک ارسال
به اشتراک گذاری در سایت های دیگر

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

 

'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="22"/>
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>)
	
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'CreateResourceFromFile(Macro, Themes.DarkTheme)
SetApplicationAttribute(android:supportsRtl, "true")
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
AddPermission("android.permission.INTERNET")
AddPermission("android.permission.READ_PHONE_STATE")
AddManifestText(<uses-permission android:name="android.permission.GET_ACCOUNTS" />)



CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">#292d33</item>
        <item name="colorPrimaryDark">#292d33</item>
        <item name="colorAccent">#292d33</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
    </style>
	 
</resources>


)
CreateResource(values-v21, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">#292d33</item>
        <item name="colorPrimaryDark">#292d33</item>
        <item name="colorAccent">#292d33</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
		<item name="android:windowTranslucentStatus">false</item>
        <item name="android:windowTranslucentNavigation">false</item>
		<item name="android:windowDrawsSystemBarBackgrounds">false</item>
        <item name="android:fitsSystemWindows">true</item>
    </style>
	 
</resources>


)

                 
AddManifestText(
<permission
        android:name="com.appdroids.movietimes.permission.C2D_MESSAGE"
        android:protectionLevel="signature" />
<uses-permission android:name="com.appdroids.movietimes.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="com.appdroids.movietimes"
            android:scheme="package" />
</intent-filter>
</receiver>
<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="com.appdroids.movietimes" />
</intent-filter>
</receiver>
<service
android:name="co.ronash.pushe.service.GcmService"
android:exported="false" >
<intent-filter>
    <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"/>

    <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="اینجا رو کد خودتو بزن "/>
    <meta-data android:name="co.ronash.pushe.cr" android:value="اینجا کد خودتو بنزن"/>
)

        

 

لینک ارسال
به اشتراک گذاری در سایت های دیگر

در 13 ساعت قبل، Javad25564 گفته است :

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


B4A Version: 8.80
Parsing code.    (0.13s)
Building folders structure.    (0.02s)
Compiling code.    (12.43s)
Compiling layouts code.    (0.18s)
Organizing libraries.    (0.00s)
Generating R file.    (7.40s)
Compiling debugger engine code.    (9.08s)
Compiling generated Java code.    (15.73s)
Convert byte code - optimized dex.    Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnimatorRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnyRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AnyThread;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/ArrayRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/AttrRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/BinderThread;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/BoolRes;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/annotation/CallSuper;
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:692)
	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:315)
	at com.android.dx.command.dexer.Main.runDx(Main.java:293)
	at com.android.dx.command.dexer.Main.main(Main.java:249)
	at com.android.dx.command.Main.main(Main.java:94)
Caused by: java.lang.InterruptedException: Too many errors
	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:684)
	... 4 more

 

سلام این با کتابخانه appcompad فکر کنم تداخل داره برای حل بهترین راه این هست کتابخانه زیر دانلود و جایگزین کنید :

 

http://s9.picofile.com/file/8353535184/b4a_no_conflict.zip.html

توجه این کد رو حتما در اکتیویتی قرار بدین

 

 

Dim p As Pushe
	p.initialize()
	p.getPusheId()
	Log("pusheId is :" & p.getPusheId())
	If p.pusheInitialized() Then 
		p.sendSimpleNotifToUser(p.getPusheId(), "hi", "simple notif from this app to this device")
    End If

 

لینک ارسال
به اشتراک گذاری در سایت های دیگر

بایگانی شده

این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.

  • کاربران آنلاین در این صفحه   0 کاربر

    • هیچ کاربر عضوی،در حال مشاهده این صفحه نیست.
×
×
  • اضافه کردن...