🔥$200/月畅享Tenjin完整访问权限 - 解锁全部功能,无隐藏费用,随时可取消 查看定价和功能
阅读时间 6 分钟
是的, 你可以在 Manifest 文件中移除以下行
android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> Execution failed for task ':transformClassesWithDexForRelease'.
com.android.build.API.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/actions/ItemListIntents;这个错误是因为你在旧版本的 Tenjin SDK 中使用不同版本的Google Play Service library。请更新至最新版本,或请移除以下文件:
/Assets/Plugins/Android/play-services-basement-11.0.4.aar由于我们也支持其他安卓商店,MSA OAID SDK (minSdkVersion is 21 for version 1.0.25), Huawei referrer SDK (minSdkVersion is 19) 这些 SDKs 要求我们将 minSdkVersion 从 16 提升至 19,以及 19 到 21。因此我们需要将 minSdkVersion 设置为 21。
如果你需要使用最新的 SDK,但不打算集成 Huawei Referrer SDK 和 MSA OAID SDK,可以尝试使用此分支(branch)。
可以通过删除TenjninEditorPrefs.cs中的第74行来进行修复。如果仍然有错误,请邮件至 support@tenjin.com。请注意,以上内容仅适用于您未集成 Applovin MAX ILRD 的情况。
请移除以下权限
<uses-permission android:name=“android.permission.READ_PHONE_STATE” />如果仍有问题,请邮件到 support@tenjin.com.
由于华为手机不再属于标准的Andriod设备,为了解决此问题,您只需要从我们提供的 这里 安装华为 OAD库即可。 这样,Tenjin SDK 就能顺利获取到设备商店OAID了。
目前我们暂不支持 Unity Codeless IAP 进行内购数据上报。建议您使用传统的 Unity IAP 方式,直至我们后续支持 Unity Codeless IAP 为止。
目前,Tenjin SDK仅处理并上报通过App Store或Google Play且具有有效收据的购买。对于外部购买(如市场交易、信用卡支付或其他非内购收入),您可以使用Tenjin的服务器到服务器(S2S)集成。有关更多详情和设置说明,请联系support@tenjin.com。
为解决此问题,请更新你的 ProGuard/R8 规则,以保留以下类和属性:
-keepattributes Signature
-keepattributes *Annotation*
-keep class com.google.gson.reflect.TypeToken { *; } 404 – 应用未正确配置: 应用/商店ID配置不正确、代码和面板中设置的应用商店类型不匹配,或SDK key不正确(配置更改后请等待几分钟生效)。
202 – 错误的设备识别符: 缺少广告ID、广告ID无效,或GDPR/opt-out配置不正确。
202 – 未记录: SDK Key可能被禁用
401 – 未授权: SDK Key错误
Install Referrer错误(Android): 缺少解密密钥,或ProGuard/R8配置不正确。
After. Call connect() only once the user has made a selection on the ATT prompt.
If connect() fires at the same time as (or before) the prompt, the ATT status is still “undetermined” and the SDK can’t read the IDFA — which weakens Attribution matching.
Correct order: Show ATT prompt → user taps Allow / Ask App Not to Track → call Tenjin.connect()
Attribution isn’t instant. After connect(), the server has to receive the request, match the click, and generate a result — roughly 3 seconds is standard industry latency. If you query too early, the result may still be calculating.
Implement retry logic on the client:
connect() — call it right after the privacy policy consent (Android) or ATT selection (iOS).getAttributionInfo call 2–3 seconds after connect().If you are applying ProGuard, keep in mind to add the rules to avoid obfuscating the required Google classes to access the GAID:
proguard
-keep class com.tenjin.** { *; }
-keep public class com.google.android.gms.ads.identifier.** { *; }
-keep public class com.google.android.gms.common.** { *; }
-keep public class com.google.android.gms.appset.** { *; }
-keep public class com.android.installreferrer.** { *; }