我在React Native Android项目上工作,但我被卡在这个错误上
> Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
D8: Program type already present: androidx.versionedparcelable.NonParcelField
FAILURE: Build failed with an exception.
Run Code Online (Sandbox Code Playgroud)
我试图在build.gradle中将multi dex更改为false
defaultconfig {...
multiDexEnabled false
...}
Run Code Online (Sandbox Code Playgroud)
我不想迁移到androidx,我只想摆脱androidx&这个错误; 请帮助我,在此先感谢
我使用 Golang 编写了这个基本服务器:
func main() {
router := gin.Default()
router.GET("/api", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"data": "hello world"})
})
router.LoadHTMLGlob("www/*.html")
router.GET("/", func(c *gin.Context) {
c.HTML(http.StatusOK, "index.html", nil)
})
fmt.Println("listening on localhost:8080")
router.Run("localhost:8080")
}
Run Code Online (Sandbox Code Playgroud)
它在本地主机上运行良好。
使用 部署后sudo gcloud app deploy,我浏览到主页的托管 url 路由,并且静态文件工作正常,但是当我浏览/api路由时,它会抛出Page not found错误(在本地工作)
这是app.yaml用于部署到 App Engine 的:
runtime: go116
handlers:
- url: /
static_files: www/index.html
upload: www/index.html
- url: /(.*)
static_files: www/\1
upload: www/(.*)
Run Code Online (Sandbox Code Playgroud)
我尝试过的:
my hosting platform is freenom which requires two nameservers but heroku gives only on nameserver
is their a way to get secondary nameserver ?
is their a hosting platform which requires only one name server ?
i have tried installing zerigo plugin
heroku addons:add zerigo_dns
Run Code Online (Sandbox Code Playgroud)
but it says
» Warning: heroku update available from 7.19.4 to 7.22.8
Creating zerigo_dns on ? dataentrywebsite... !
! Couldn't find either the add-on service or the add-on plan of "zerigo_dns".
Run Code Online (Sandbox Code Playgroud)
perhaps does not exist …