我正在尝试使用eclipse中的gradle构建一个android应用程序,并且我试图在项目根目录中使用命令gradle build 构建apk,
我在
$projdir/build/intermediates/manifests/full/release/Androidmanifest.xml
说
/build/intermediates/manifests/full/release/AndroidManifest.xml:139:28-68: AAPT: No resource found that matches the given name (at 'theme' with value '@style/Theme.AppCompat.Light.NoActionBar').
当我打开eclipse时,它会将我重定向到正确的资源,并且没有显示任何错误。而且我认为上述路径中的
Androidmanifest.xml
是必要的吗?
最佳答案
Use AppTheme like this :-
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".activity.SplashActivity"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
关于android - Androidmanifest.xml文件中的gradle构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48558381/