在依赖依赖Firebase_admob- 0.5.5的flutter构建apk期间出现错误,但是在run命令上可以完美运行。 颤动构建期间终端上的错误是-
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':firebase_admob:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
C:\Users\Azhan Khan\AndroidStudioProjects\simple_motivation\build\firebase_admob\intermediates\res\merged\release\values\values.xml:304: error: resource android:attr/fontVariationSetti
ngs not found.
C:\Users\Azhan Khan\AndroidStudioProjects\simple_motivation\build\firebase_admob\intermediates\res\merged\release\values\values.xml:305: error: resource android:attr/ttcIndex not found
.
error: failed linking references.
有人可以帮我解决这个问题吗?
答案 0 :(得分:0)
我有同样的问题案例。我的错误是我要放
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-xxxxxxxxxxxxxxx~xxxxxxxxxx"/>
活动标签之间
但是它应该在活动代码之外