未找到adSize,Android Studio未链接广告框架?

未找到adSize,Android Studio未链接广告框架?,android,admob,Android,Admob,我跟在后面 > 生成时出现的错误: ``` 您是否添加了对实现'com.google.android.gms:play services ads:17.0.0'的依赖项?我当然添加了。我看到测试广告成功呈现。那很好。问题是它会中断我其余的渲染。哦,我看到你正试图使用功能模块中的资源。如果您尝试从基引用它,它会编译吗?不确定是否将依赖项资源打包到基本apk中,以便功能可以看到它们。解决方案是什么?我面临着同样的错误。@IgorGanapolsky我刚刚重新启动了我的项目,并再次尝试,使其正常工

我跟在后面


>

生成时出现的错误:

```


您是否添加了对
实现'com.google.android.gms:play services ads:17.0.0'
的依赖项?我当然添加了。我看到测试广告成功呈现。那很好。问题是它会中断我其余的渲染。哦,我看到你正试图使用功能模块中的资源。如果您尝试从基引用它,它会编译吗?不确定是否将依赖项资源打包到基本apk中,以便功能可以看到它们。解决方案是什么?我面临着同样的错误。@IgorGanapolsky我刚刚重新启动了我的项目,并再次尝试,使其正常工作
Android resource linking failed
Output:  /Users/quantum/QuantumPilot/android/feature/src/main/res/layout/activity_main.xml:29: error: attribute adSize (aka quantumpilot.quantumproductions.com.quantumpilot.app:adSize) not found.
/Users/quantum/QuantumPilot/android/feature/src/main/res/layout/activity_main.xml:29: error: attribute adUnitId (aka quantumpilot.quantumproductions.com.quantumpilot.app:adUnitId) not found.
error: failed linking file resources.

Command: /Users/quantum/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/502ec8114256bc9343b789f7637adf71/aapt2-3.2.1-4818971-osx/aapt2 link -I\
        /Users/quantum/Library/Android/sdk/platforms/android-27/android.jar\
        --manifest\
        /Users/quantum/QuantumPilot/android/feature/build/intermediates/merged_manifests/debugFeature/processDebugFeatureManifest/merged/AndroidManifest.xml\
        -o\
        /Users/quantum/QuantumPilot/android/feature/build/intermediates/processed_res/debugFeature/processDebugFeatureResources/out/resources-debugFeature.ap_\
        -R\
        @/Users/quantum/QuantumPilot/android/feature/build/intermediates/incremental/processDebugFeatureResources/resources-list-for-resources-debugFeature.ap_.txt\
        --auto-add-overlay\
        --java\
        /Users/quantum/QuantumPilot/android/feature/build/generated/not_namespaced_r_class_sources/debugFeature/processDebugFeatureResources/r\
        --proguard\
        /Users/quantum/QuantumPilot/android/feature/build/intermediates/proguard-rules/feature/debug/aapt_rules.txt\
        --custom-package\
        quantumpilot.quantumproductions.com.quantumpilot.feature\
        -0\
        apk\
        --allow-reserved-package-id\
        --package-id\
        0x7e\
        -I\
        /Users/quantum/QuantumPilot/android/base/build/intermediates/processed_res/debugFeature/processDebugFeatureResources/out/resources-debugFeature.ap_\
        --no-version-vectors
Daemon:  AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
```