小编cur*_*rob的帖子

What is the proper way to depend on a gradle project that is a Git submodule?

I am running into a problem with trying to include a Git submodule in my Gradle project and depend on a single Gradle module within the Git submodule.

The submodule is a library that has the following structure:

MappingLib
 -BaseLib
 -AndroidLib
Run Code Online (Sandbox Code Playgroud)

Where the settings.gradle file for MappingLib contains:

include ':BaseLib', ':AndroidLib'
Run Code Online (Sandbox Code Playgroud)

and the AndroidLib's build.gradle file contains (among other things):

dependencies {
  ...
  compile project(':BaseLib')
  ...
}
Run Code Online (Sandbox Code Playgroud)

当独立开发时,子模块构建得很好。

然后我有另一个项目,其中包含 MappingLib 作为子模块。该项目具有以下结构:

MyCoolApp
 -app
 -MappingLib (this is the submodule)
   -BaseLib
   -AndroidLib …
Run Code Online (Sandbox Code Playgroud)

git gradle android-studio

6
推荐指数
1
解决办法
1888
查看次数

角谷歌地图填充空间

我正在尝试在使用 Bootstrap 进行样式设置的 Web 应用程序中使用 Angular Google Map。现在,我只是想获得一个基本示例,该示例显示一个网页,该网页由一个导航栏和一个ui-gmap-google-map占据所有剩余空间的谷歌地图(使用 Angular 的元素)组成。但是,除了不考虑屏幕上其他元素大小的固定高度之外,我无法让 Google 地图具有任何其他内容。

下面是我的代码:

地图沙盒.html

<!DOCTYPE html>
<html ng-app="myApp" lang="en" ng-controller="myCtrl">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Welcome</title>

    <!--CSS-->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">


    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
     <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
     <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>

<body>
<nav …
Run Code Online (Sandbox Code Playgroud)

html css google-maps-api-3 twitter-bootstrap angularjs

5
推荐指数
1
解决办法
2309
查看次数